Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-crt/math/coshl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-crt/math/coshl.c b/mingw-w64-crt/math/coshl.c
index 4aaaf6e21..c5aaa73ec 100644
--- a/mingw-w64-crt/math/coshl.c
+++ b/mingw-w64-crt/math/coshl.c
@@ -30,7 +30,7 @@ long double coshl(long double x)
else if (x_class == FP_INFINITE)
{
errno = ERANGE;
- return x;
+ return INFINITY;
}
x = fabsl (x);
if (x > (MAXLOGL + LOGE2L))
--
2.17.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public