]> git.eshelyaron.com Git - emacs.git/commitdiff
; * haiku_support.cc (MessageReceived): Fix 32-bit build.
authorPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 06:50:12 +0000 (06:50 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 06:50:12 +0000 (06:50 +0000)
src/haiku_support.cc

index ecd93dd226a85bd7e04dc0e01b3d7ee75fb6f76b..98cc8e93147a8e213e461a320771c5a4bb992700 100644 (file)
@@ -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)
          {