From a5bc6f7b009d74605ea5adf2ce2c58fd5bef44b6 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 20 Dec 2016 14:55:21 -0800 Subject: [PATCH] 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 5fbb9dfb3a..4e9bec6ff2 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 {