diff options
| author | Po Lu | 2022-03-13 06:50:12 +0000 |
|---|---|---|
| committer | Po Lu | 2022-03-13 06:50:12 +0000 |
| commit | ae8c146332132013bd98d63da1a4f8bbff7624f6 (patch) | |
| tree | eb4bd661a7b5804f7bebca074d794a300e676ae4 /src | |
| parent | 8c1a06815927cc4fc6114cddc4a6bf96f613ed5e (diff) | |
| download | emacs-ae8c146332132013bd98d63da1a4f8bbff7624f6.tar.gz emacs-ae8c146332132013bd98d63da1a4f8bbff7624f6.zip | |
; * haiku_support.cc (MessageReceived): Fix 32-bit build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haiku_support.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index ecd93dd226a..98cc8e93147 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc | |||
| @@ -1596,7 +1596,9 @@ public: | |||
| 1596 | proportion = (float) portion / range; | 1596 | proportion = (float) portion / range; |
| 1597 | value = msg->GetInt32 ("emacs:units", 0); | 1597 | value = msg->GetInt32 ("emacs:units", 0); |
| 1598 | can_overscroll = msg->GetBool ("emacs:overscroll", false); | 1598 | can_overscroll = msg->GetBool ("emacs:overscroll", false); |
| 1599 | value = std::max (0, value); | 1599 | |
| 1600 | if (value < 0) | ||
| 1601 | value = 0; | ||
| 1600 | 1602 | ||
| 1601 | if (dragging != 1) | 1603 | if (dragging != 1) |
| 1602 | { | 1604 | { |