elementary: fix float warning in progressbar.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:14:14 +0000 (15:14 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000 (16:39 -0800)
src/lib/elementary/elm_progressbar.c

index 9f92ca7..34e7ec1 100644 (file)
@@ -425,7 +425,7 @@ _elm_progressbar_efl_ui_progress_span_size_get(Eo *obj EINA_UNUSED, Elm_Progress
 EOLIAN static void
 _elm_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Elm_Progressbar_Data *sd, double val)
 {
-   if (sd->val == val) return;
+   if (EINA_DBL_CMP(sd->val, val)) return;
 
    elm_progressbar_part_value_set(obj, "elm.cur.progressbar", val);
 }