[gnome-applets/wip/muktupavels/werror] geyes: fix -Wabsolute-value warnings



commit 170fa8589c54bcd66f3c015ee0b871ec785cbd26
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 4 23:36:55 2020 +0300

    geyes: fix -Wabsolute-value warnings

 gnome-applets/geyes/geyes-applet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-applets/geyes/geyes-applet.c b/gnome-applets/geyes/geyes-applet.c
index c2179bbab..02d56859b 100644
--- a/gnome-applets/geyes/geyes-applet.c
+++ b/gnome-applets/geyes/geyes-applet.c
@@ -72,8 +72,8 @@ calculate_pupil_xy (EyesApplet *eyes_applet,
         ny = y - MAX(height- eyes_applet->eye_height, 0) * yalign - eyes_applet->eye_height / 2;
   
         h = hypot (nx, ny);
-        if (h < 0.5 || abs (h) 
-            < (abs (hypot (eyes_applet->eye_height / 2, eyes_applet->eye_width / 2)) - 
eyes_applet->wall_thickness - eyes_applet->pupil_height)) {
+        if (h < 0.5 || fabs (h)
+            < (fabs (hypot (eyes_applet->eye_height / 2, eyes_applet->eye_width / 2)) - 
eyes_applet->wall_thickness - eyes_applet->pupil_height)) {
                 *pupil_x = nx + eyes_applet->eye_width / 2;
                 *pupil_y = ny + eyes_applet->eye_height / 2;
                 return;


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