[newlib-cygwin] Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY
Corinna Vinschen
corinna@sourceware.org
Tue Aug 20 16:16:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8dee6fe6a5e7dd31af9c83ec2fe31d0d13dfa44f
commit 8dee6fe6a5e7dd31af9c83ec2fe31d0d13dfa44f
Author: Martin Storsjö <martin@martin.st>
Date: Tue Jul 30 23:51:09 2019 +0300
Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY
Signed-off-by: Martin Storsjö <martin@martin.st>
Diff:
---
winsup/cygwin/math/coshl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/math/coshl.c b/winsup/cygwin/math/coshl.c
index d7eb4b7..e636996 100644
--- a/winsup/cygwin/math/coshl.c
+++ b/winsup/cygwin/math/coshl.c
@@ -21,7 +21,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))
More information about the Cygwin-cvs
mailing list