]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compiler warnings
authorPo Lu <luangruo@yahoo.com>
Sun, 21 Nov 2021 03:48:27 +0000 (03:48 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 21 Nov 2021 03:48:27 +0000 (03:48 +0000)
* src/haikuterm.c (haiku_read_socket): Fix compiler
warnings intoduced by last change.

src/haikuterm.c

index 6b3c5dbe4837218b866fef91d316cac3cf64c911..6304d9bcd3c34ae21a73c24a6340f45b725d02b2 100644 (file)
@@ -3005,14 +3005,16 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
            if (signbit (py) != signbit (b->delta_y))
              py = 0;
 
-           px += b->delta_x * pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
-           py += b->delta_y * pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
+           px += (b->delta_x
+                  * powf (FRAME_PIXEL_HEIGHT (f), 2.0f / 3.0f));
+           py += (b->delta_y
+                  * powf (FRAME_PIXEL_HEIGHT (f), 2.0f / 3.0f));
 
            if (fabsf (py) >= FRAME_LINE_HEIGHT (f)
                || fabsf (px) >= FRAME_COLUMN_WIDTH (f)
                || !x_coalesce_scroll_events)
              {
-               inev.kind = (fabsf (px) > fabs (py)
+               inev.kind = (fabsf (px) > fabsf (py)
                             ? HORIZ_WHEEL_EVENT
                             : WHEEL_EVENT);
                inev.code = 0;