From: Chris Michael Date: Wed, 14 Oct 2015 14:38:14 +0000 (-0400) Subject: enlightenment: Use 'fabs' to compute absolute value of floating point X-Git-Tag: upstream/0.20.0~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cd6fcc3a938d398e8b16a5444b14f7fda9279a6;p=platform%2Fupstream%2Fenlightenment.git enlightenment: Use 'fabs' to compute absolute value of floating point types Signed-off-by: Chris Michael --- 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;