summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_tooltip.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-05-09 09:25:17 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-09 09:25:17 +0100
commitc323199f3c8332b5a3794e93a46007273c0451b9 (patch)
treef994e92ebff668d811249eb25bf2e53358aebf04 /src/bin/elementary/test_tooltip.c
parente0cf299ae5a98b294700bc04651a018fb779d0fc (diff)
bin/elm: resolve float compare warnings
Summary: Depends on D11789 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11790
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_tooltip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_tooltip.c b/src/bin/elementary/test_tooltip.c
index eb4ce890c1..3615886478 100644
--- a/src/bin/elementary/test_tooltip.c
+++ b/src/bin/elementary/test_tooltip.c
@@ -157,7 +157,7 @@ _tt_item_icon3(void *data EINA_UNUSED,
157 sc = ((float)sw * 0.8) / (float)w; 157 sc = ((float)sw * 0.8) / (float)w;
158 else if ((float)h / (float)sh >= 0.8) 158 else if ((float)h / (float)sh >= 0.8)
159 sc = ((float)sh * 0.8) / (float)h; 159 sc = ((float)sh * 0.8) / (float)h;
160 if (sc) elm_object_scale_set(ic, sc); 160 if (EINA_FLT_NONZERO(sc)) elm_object_scale_set(ic, sc);
161 } 161 }
162 return ic; 162 return ic;
163} 163}