libc: fix NaN check precedence bug in modf() (thanks BurnZeZ)
This commit is contained in:
parent
1d82e3f42a
commit
21ce34bd7f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ modf(double d, double *ip)
|
|||
e = (x.hi >> SHIFT) & MASK;
|
||||
if(e == MASK){
|
||||
*ip = d;
|
||||
if(x.lo != 0 || (x.hi & 0xfffffL != 0)) /* NaN */
|
||||
if(x.lo != 0 || (x.hi & 0xfffffL) != 0) /* NaN */
|
||||
return d;
|
||||
/* ±Inf */
|
||||
x.hi &= 0x80000000L;
|
||||
|
|
Loading…
Reference in a new issue