From: Anthony Green Date: Sun, 15 Sep 2024 16:32:29 +0000 (-0400) Subject: Fix floating point compare X-Git-Tag: upstream/3.4.7~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92d384df196a099fde384f9178864dbfe8c6b0fc;p=platform%2Fupstream%2Flibffi.git Fix floating point compare --- diff --git a/testsuite/libffi.call/struct_int_float.c b/testsuite/libffi.call/struct_int_float.c index 8268581..66ef6c4 100644 --- a/testsuite/libffi.call/struct_int_float.c +++ b/testsuite/libffi.call/struct_int_float.c @@ -14,11 +14,11 @@ typedef struct } test_structure_int_float; static float ABI_ATTR struct_int_float(test_structure_int_float ts1, - test_structure_int_float ts2, - test_structure_int_float ts3, - test_structure_int_float ts4, - test_structure_int_float ts5, - test_structure_int_float ts6) + test_structure_int_float ts2 __UNUSED__, + test_structure_int_float ts3 __UNUSED__, + test_structure_int_float ts4 __UNUSED__, + test_structure_int_float ts5 __UNUSED__, + test_structure_int_float ts6 __UNUSED__) { return ts1.f; } @@ -82,7 +82,7 @@ int main (void) printf ("%g\n", rfloat); - CHECK(fabs(rfloat - 11.11) < FLT_EPSILON); + CHECK(fabs(rfloat - 11.11) < 3 * FLT_EPSILON); exit(0); }