devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8120572d08ef39a6f3a1a1cff0be912fa469c85d

commit 8120572d08ef39a6f3a1a1cff0be912fa469c85d
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Dec 20 11:16:59 2016 -0500

    ethumb: remove float comparison warnings
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ethumb/ethumb.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index b66c3f4..6a552f6 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1151,8 +1151,7 @@ ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, 
int *w, int *h)
    *w = e->tw;
    *h = e->th;
 
-   if (ia == 0)
-     return;
+   if (EINA_DBL_CMP(ia, 0.0)) return;
 
    a = e->tw / (float)e->th;
 
@@ -1190,8 +1189,7 @@ ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int 
*fx, int *fy, int *fw,
    *fx = 0;
    *fy = 0;
 
-   if (ia == 0)
-     return;
+   if (EINA_DBL_CMP(ia, 0.0)) return;
 
    a = e->tw / (float)e->th;
 
@@ -1736,7 +1734,7 @@ ethumb_dup(const Ethumb *e)
 }
 
 #define CHECK_DELTA(Param)                      \
-  if (e1->Param != e2->Param)                   \
+  if (!EINA_DBL_CMP(e1->Param, e2->Param))      \
     return EINA_TRUE;
 
 EAPI Eina_Bool

-- 


Reply via email to