From 8dee6fe6a5e7dd31af9c83ec2fe31d0d13dfa44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 30 Jul 2019 23:51:09 +0300 Subject: [PATCH] Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- 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 d7eb4b7cb..e63699625 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))