emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ae8c146332: ; * haiku_support.cc (MessageReceived): Fix 32-bit bu


From: Po Lu
Subject: master ae8c146332: ; * haiku_support.cc (MessageReceived): Fix 32-bit build.
Date: Sun, 13 Mar 2022 01:51:28 -0500 (EST)

branch: master
commit ae8c146332132013bd98d63da1a4f8bbff7624f6
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; * haiku_support.cc (MessageReceived): Fix 32-bit build.
---
 src/haiku_support.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index ecd93dd226..98cc8e9314 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -1596,7 +1596,9 @@ public:
        proportion = (float) portion / range;
        value = msg->GetInt32 ("emacs:units", 0);
        can_overscroll = msg->GetBool ("emacs:overscroll", false);
-       value = std::max (0, value);
+
+       if (value < 0)
+         value = 0;
 
        if (dragging != 1)
          {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]