public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY
@ 2019-08-20 16:16 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-08-20 16:16 UTC (permalink / raw)
  To: cygwin-cvs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 831 bytes --]

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-20 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 16:16 [newlib-cygwin] Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).