projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233cb77
)
elementary: fix float comparison warning in bg test.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 22:54:59 +0000
(14:54 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000
(16:39 -0800)
src/bin/elementary/test_bg.c
patch
|
blob
|
history
diff --git
a/src/bin/elementary/test_bg.c
b/src/bin/elementary/test_bg.c
index 3d1d8856b4bf6cd7443594032898ecba6102bdc2..bb6b1197a0eb9bc8ca1b9d3cc03730103ba94048 100644
(file)
--- a/
src/bin/elementary/test_bg.c
+++ b/
src/bin/elementary/test_bg.c
@@
-47,13
+47,13
@@
_cb_color_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
double val = 0.0;
val = elm_spinner_value_get(obj);
- if (
val == 1.0
)
+ if (
EINA_DBL_CMP(val, 1.0)
)
elm_bg_color_set(o_bg, 255, 255, 255);
- else if (
val == 2.0
)
+ else if (
EINA_DBL_CMP(val, 2.0)
)
elm_bg_color_set(o_bg, 255, 0, 0);
- else if (
val == 3.0
)
+ else if (
EINA_DBL_CMP(val, 3.0)
)
elm_bg_color_set(o_bg, 0, 0, 255);
- else if (
val == 4.0
)
+ else if (
EINA_DBL_CMP(val, 4.0)
)
elm_bg_color_set(o_bg, 0, 255, 0);
}