devilhorns pushed a commit to branch master.

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

commit 2c9e46ace5a65596e453de6b15fd14c828e59b78
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Dec 20 10:06:44 2016 -0500

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

diff --git a/src/lib/evas/cache2/evas_cache2.c 
b/src/lib/evas/cache2/evas_cache2.c
index 60242f8..1c72155 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -679,12 +679,12 @@ evas_cache2_image_open(Evas_Cache2 *cache, const char 
*path, const char *key,
    /* use local var to copy default load options to the image entry */
    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->scale_load.dst_w == 0) || (lo->scale_load.dst_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->scale_load.dst_w == 0) || (lo->scale_load.dst_h == 0)) &&
+           (lo->orientation == 0)
        ))
      {
         lo = &prevent;

-- 


Reply via email to