cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a5bc6f7b009d74605ea5adf2ce2c58fd5bef44b6

commit a5bc6f7b009d74605ea5adf2ce2c58fd5bef44b6
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Dec 20 14:55:21 2016 -0800

    elementary: fix float comparison warning in flip page test.
---
 src/bin/elementary/test_flip_page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/elementary/test_flip_page.c 
b/src/bin/elementary/test_flip_page.c
index 5fbb9df..4e9bec6 100644
--- a/src/bin/elementary/test_flip_page.c
+++ b/src/bin/elementary/test_flip_page.c
@@ -385,7 +385,7 @@ _state_update(State *st)
 
    if (mx < 1) mx = 1; // quick hack to keep curl line visible
 
-   if (mgrad == 0.0) // special horizontal case
+   if (EINA_DBL_CMP(mgrad, 0.0)) // special horizontal case
       mgrad = 0.001; // quick dirty hack for now
    // else
      {

-- 


Reply via email to