cedric pushed a commit to branch master.

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

commit e24ad2914205835223be8079b68fc1030d03723f
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Dec 19 16:27:22 2016 -0800

    eina: get rid of float comparison warning from str test.
---
 src/tests/eina/eina_test_str.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/eina/eina_test_str.c b/src/tests/eina/eina_test_str.c
index 3ed8b1e..0af97e2 100644
--- a/src/tests/eina/eina_test_str.c
+++ b/src/tests/eina/eina_test_str.c
@@ -336,7 +336,7 @@ START_TEST(str_memdup)
    t2 = (struct temp *)eina_memdup((unsigned char *)&t1, sizeof(struct temp), 
EINA_TRUE);
    fail_if(t2->i != t1.i);
    fail_if(strcmp(t2->s,t1.s) != 0);
-   fail_if(t2->d != t1.d);
+   fail_if(!EINA_FLT_CMP(t2->d, t1.d));
    free(t2);
 
    memcpy(buf, "aaabbb", 6);

-- 


Reply via email to