devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=33ad245b803ad82602cb3656eef8a48de26a0e71

commit 33ad245b803ad82602cb3656eef8a48de26a0e71
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Dec 20 10:05:48 2016 -0500

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

diff --git a/src/lib/evas/cache/evas_cache_image.c 
b/src/lib/evas/cache/evas_cache_image.c
index 699a2df..3868325 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -711,11 +711,11 @@ _evas_cache_image_loadopts_append(char *hkey, 
Evas_Image_Load_Opts **plo)
 
    if ((!lo) ||
        (lo &&
-        (lo->scale_down_by == 0) &&
-        (lo->dpi == 0.0) &&
-        ((lo->w == 0) || (lo->h == 0)) &&
-        ((lo->region.w == 0) || (lo->region.h == 0)) &&
-        (lo->orientation == 0)
+           (lo->scale_down_by == 0) &&
+           (EINA_DBL_CMP(lo->dpi, 0.0)) &&
+           ((lo->w == 0) || (lo->h == 0)) &&
+           ((lo->region.w == 0) || (lo->region.h == 0)) &&
+           (lo->orientation == 0)
        ))
      {
         *plo = (Evas_Image_Load_Opts*) &prevent;

-- 


Reply via email to