From 2cd6fcc3a938d398e8b16a5444b14f7fda9279a6 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 14 Oct 2015 10:38:14 -0400 Subject: [PATCH] enlightenment: Use 'fabs' to compute absolute value of floating point types Signed-off-by: Chris Michael --- src/modules/wl_drm/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index d6d8c79..7a9f6aa 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -108,7 +108,7 @@ _e_mod_drm_mode_screen_find(E_Randr2_Screen *s, Ecore_Drm_Output *output) { diff = (100 * abs(s->config.mode.w - mode->width)) + (100 * abs(s->config.mode.h - mode->height)) + - abs((100 * s->config.mode.refresh) - (100 * mode->refresh)); + fabs((100 * s->config.mode.refresh) - (100 * mode->refresh)); if (diff < distance) { m = mode; -- 2.7.4