devilhorns pushed a commit to branch master.

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

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

    enlightenment: Use 'fabs' to get absolute value of floating point types
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_comp_x_randr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_comp_x_randr.c b/src/bin/e_comp_x_randr.c
index 73ff806..b526b24 100644
--- a/src/bin/e_comp_x_randr.c
+++ b/src/bin/e_comp_x_randr.c
@@ -399,7 +399,7 @@ _mode_screen_find(Ecore_X_Window root, E_Randr2_Screen *s, 
Ecore_X_Randr_Output
              diff =
                (100 * abs(s->config.mode.w - minfo->width)) +
                (100 * abs(s->config.mode.h - minfo->height)) +
-               abs((100 * s->config.mode.refresh) - (100 * refresh));
+               fabs((100 * s->config.mode.refresh) - (100 * refresh));
              if (diff < distance)
                {
                   mode = modes[i];

-- 


Reply via email to