summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/math/coshl.c2
1 files changed, 1 insertions, 1 deletions
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))