devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2cd6fcc3a938d398e8b16a5444b14f7fda9279a6

commit 2cd6fcc3a938d398e8b16a5444b14f7fda9279a6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Oct 14 10:38:14 2015 -0400

    enlightenment: Use 'fabs' to compute absolute value of floating point
    types
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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;

-- 


Reply via email to