2014-02-04 Matthias Braun <matze@braunis.de>

* libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
This commit is contained in:
Jeff Johnston 2014-02-04 20:49:53 +00:00
parent f3852ab7db
commit d581a24a36
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-02-04 Matthias Braun <matze@braunis.de>
* libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
2014-01-20 Corinna Vinschen <vinschen@redhat.com>
* libc/include/setjmp.h (longjmp): Fix copy/paste error.

View File

@ -40,7 +40,7 @@ _DEFUN (numtestf, (float),
}
/* Check for not a number or infinity. */
if (exp == 0x7f8)
if (exp == 0xff)
{
if(wx & 0x7fffff)
return (NAN);