From: Po Lu Date: Sun, 13 Mar 2022 06:50:12 +0000 (+0000) Subject: ; * haiku_support.cc (MessageReceived): Fix 32-bit build. X-Git-Tag: emacs-29.0.90~1931^2~1164 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae8c146332132013bd98d63da1a4f8bbff7624f6;p=emacs.git ; * haiku_support.cc (MessageReceived): Fix 32-bit build. --- 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: 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) {