From 2c9e46ace5a65596e453de6b15fd14c828e59b78 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 20 Dec 2016 10:06:44 -0500 Subject: [PATCH] evas: remove float comparison warnings for evas_cache2 Signed-off-by: Chris Michael --- 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 60242f834c..1c72155a68 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;