From 92d384df196a099fde384f9178864dbfe8c6b0fc Mon Sep 17 00:00:00 2001
From: Anthony Green <green@moxielogic.com>
Date: Sun, 15 Sep 2024 12:32:29 -0400
Subject: [PATCH] Fix floating point compare

Conflict:NA
Reference:https://github.com/libffi/libffi/commit/92d384df196a099fde384f9178864dbfe8c6b0fc
---
 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 90e3787..7271d42 100644
--- a/testsuite/libffi.call/struct_int_float.c
+++ b/testsuite/libffi.call/struct_int_float.c
@@ -16,11 +16,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;
 }
@@ -84,7 +84,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.33.0


