Skip to content

Commit

Permalink
2014-02-04 Matthias Braun <[email protected]>
Browse files Browse the repository at this point in the history
        * libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
  • Loading branch information
jjohnstn committed Feb 4, 2014
1 parent f3852ab commit d581a24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions newlib/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-02-04 Matthias Braun <[email protected]>

* libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.

2014-01-20 Corinna Vinschen <[email protected]>

* libc/include/setjmp.h (longjmp): Fix copy/paste error.
Expand Down
2 changes: 1 addition & 1 deletion newlib/libm/mathfp/sf_numtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d581a24

Please sign in to comment.