From 0a05725cc15de02da064df9cf2ba3a11aeef583b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 19 Dec 2016 16:31:49 -0800 Subject: [PATCH] ecore: remove floating point comparison warning from Ecore main loop code. --- src/lib/ecore/ecore_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 68df4af..d676ae4 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -1694,7 +1694,7 @@ _ecore_main_select(double timeout) int max_fd, ret, err_no; t = NULL; - if ((!ECORE_FINITE(timeout)) || (timeout == 0.0)) /* finite() tests for NaN, too big, too small, and infinity. */ + if ((!ECORE_FINITE(timeout)) || (EINA_FLT_CMP(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity. */ { tv.tv_sec = 0; tv.tv_usec = 0; -- 2.7.4