cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=df0894f2bf6121ac559a8bcba64f7b379339da07
commit df0894f2bf6121ac559a8bcba64f7b379339da07 Author: Cedric BAIL <[email protected]> Date: Tue Dec 20 15:39:35 2016 -0800 elementary: fix float comparison warning in button. --- src/lib/elementary/elm_button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_button.c b/src/lib/elementary/elm_button.c index 17ef209..7faf267 100644 --- a/src/lib/elementary/elm_button.c +++ b/src/lib/elementary/elm_button.c @@ -382,7 +382,7 @@ _elm_button_autorepeat_initial_timeout_set(Eo *obj, Elm_Button_Data *sd, double return; } - if (sd->ar_initial_timeout == t) return; + if (EINA_DBL_CMP(sd->ar_initial_timeout, t)) return; ELM_SAFE_FREE(sd->timer, ecore_timer_del); sd->ar_initial_timeout = t; } @@ -405,7 +405,7 @@ _elm_button_autorepeat_gap_timeout_set(Eo *obj, Elm_Button_Data *sd, double t) return; } - if (sd->ar_gap_timeout == t) return; + if (EINA_DBL_CMP(sd->ar_gap_timeout, t)) return; sd->ar_gap_timeout = t; if ((sd->repeating) && (sd->timer)) ecore_timer_interval_set(sd->timer, t); --
