Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2019-07-30 23:51:09 +03:00 committed by Ken Brown
parent a262d9a6a3
commit a1c0608a88
1 changed files with 1 additions and 1 deletions

View File

@ -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))