From: Jakub Jelinek Date: Tue, 27 Oct 2009 20:46:08 +0000 (-0700) Subject: Fix range checks in coshl. X-Git-Tag: fedora/glibc-2.10.90-27~3^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98363ded87633c2bb91140d115cbd7b449634038;p=thirdparty%2Fglibc.git Fix range checks in coshl. --- diff --git a/ChangeLog b/ChangeLog index b88343fa7a2..bac4e7a2f1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-27 Jakub Jelinek + + [BZ #10817] + * math/w_coshl.c (__coshl): Use __finitel instead of __finite. + Reported by Ray Chason. + 2009-10-21 H.J. Lu * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add diff --git a/math/w_coshl.c b/math/w_coshl.c index 5f4623a81a6..52b8d935229 100644 --- a/math/w_coshl.c +++ b/math/w_coshl.c @@ -38,8 +38,8 @@ static char rcsid[] = "$NetBSD: $"; long double z; z = __ieee754_coshl(x); if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z; - if(!__finite(z) && __finite(x)) { - return __kernel_standard(x,x,205); /* cosh overflow */ + if(!__finitel(z) && __finitel(x)) { + return __kernel_standard(x,x,205); /* cosh overflow */ } else return z; #endif