This makes the function behave as all documentation specifies it should.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/math/x86/acosh.def.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/math/x86/acosh.def.h 
b/mingw-w64-crt/math/x86/acosh.def.h
index 7ecf08beb..be54d2641 100644
--- a/mingw-w64-crt/math/x86/acosh.def.h
+++ b/mingw-w64-crt/math/x86/acosh.def.h
@@ -58,7 +58,7 @@ __FLT_ABI(acosh) (__FLT_TYPE x)
   else if (x_class == FP_INFINITE)
     {
       __FLT_RPT_DOMAIN ("acosh", x, 0.0, __FLT_NAN);
-      return __FLT_NAN;
+      return INFINITY;
     }
 
   if (x > __FLT_CST(0x1p32))
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to