From 92d384df196a099fde384f9178864dbfe8c6b0fc Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sun, 15 Sep 2024 12:32:29 -0400 Subject: [PATCH] Fix floating point compare --- testsuite/libffi.call/struct_int_float.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } -- 2.34.1