summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-20 11:01:27 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-20 11:01:27 -0500
commit72a3556fa755548434c5b871ada53bec5a046865 (patch)
tree9446a1a60bb5670ac61906a6457b32b80a7856cc /src/lib/efreet
parent8ce2d991500300d466ff3572fcd60400083880d4 (diff)
efreet: remove float comparison warnings
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_icon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_icon.c b/src/lib/efreet/efreet_icon.c
index 6b02bfb19d..ff62779bae 100644
--- a/src/lib/efreet/efreet_icon.c
+++ b/src/lib/efreet/efreet_icon.c
@@ -543,7 +543,9 @@ efreet_icon_lookup_icon(Efreet_Cache_Icon *icon, unsigned int size)
543 distance = efreet_icon_size_distance(icon->icons[i], size); 543 distance = efreet_icon_size_distance(icon->icons[i], size);
544 if (distance > minimal_distance) continue; 544 if (distance > minimal_distance) continue;
545 // prefer downsizing 545 // prefer downsizing
546 if ((distance == minimal_distance) && (icon->icons[i]->normal < ret_size)) continue; 546 if ((EINA_DBL_CMP(distance, minimal_distance)) &&
547 (icon->icons[i]->normal < ret_size))
548 continue;
547 549
548 tmp = efreet_icon_lookup_path(icon->icons[i]); 550 tmp = efreet_icon_lookup_path(icon->icons[i]);
549 551