ecore: proper macro usage for double comparision. Summary: The comparisions are done...
authorUmesh Tanwar <umesh.tanwar@samsung.com>
Tue, 21 Mar 2017 18:11:19 +0000 (11:11 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 21 Mar 2017 18:11:23 +0000 (11:11 -0700)
Summary: Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Reviewers: singh.amitesh, cedric

Subscribers: jpeg, atulfokk

Differential Revision: https://phab.enlightenment.org/D4719

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore/ecore_main.c
src/lib/ecore/ecore_pipe.c
src/lib/ecore/ecore_poller.c
src/lib/ecore/ecore_thread.c

index da573cc..758bad6 100644 (file)
@@ -1695,7 +1695,7 @@ _ecore_main_select(double timeout)
    int max_fd, ret, err_no;
 
    t = NULL;
-   if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity.  */
+   if ((!ECORE_FINITE(timeout)) || (EINA_DBL_EQ(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity.  */
      {
         tv.tv_sec = 0;
         tv.tv_usec = 0;
index 23a4c1f..4bdce6e 100644 (file)
@@ -427,7 +427,7 @@ _ecore_pipe_wait(Ecore_Pipe *p,
         if (wait >= 0.0)
           {
              /* finite() tests for NaN, too big, too small, and infinity.  */
-             if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0)))
+             if ((!ECORE_FINITE(timeout)) || (EINA_DBL_EQ(timeout, 0.0)))
                {
                   tv.tv_sec = 0;
                   tv.tv_usec = 0;
index 839c6f6..ee4ebce 100644 (file)
@@ -99,7 +99,7 @@ _ecore_poller_next_tick_eval(void)
         else
           {
              t = ecore_loop_time_get();
-             if (!EINA_FLT_EQ(interval, poll_cur_interval))
+             if (!EINA_DBL_EQ(interval, poll_cur_interval))
                {
                   t -= last_tick; /* time since we last ticked */
      /* delete the timer and reset it to tick off in the new
index 15128a1..91e6aac 100644 (file)
@@ -1465,7 +1465,7 @@ ecore_thread_global_data_wait(const char *key,
           ret = eina_hash_find(_ecore_thread_global_hash, key);
         LRWKU(_ecore_thread_global_hash_lock);
         if ((ret) ||
-            (!EINA_FLT_EQ(seconds, 0.0)) ||
+            (!EINA_DBL_EQ(seconds, 0.0)) ||
             ((seconds > 0) && (tm <= ecore_time_get())))
           break;
         LKL(_ecore_thread_global_hash_mutex);