mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 18:30:28 +00:00
strtod: handle NaN properly
This commit is contained in:
parent
0c7dcd90de
commit
b00d4c0967
1 changed files with 2 additions and 2 deletions
4
third_party/gdtoa/strtod.c
vendored
4
third_party/gdtoa/strtod.c
vendored
|
@ -237,8 +237,8 @@ dig_done:
|
|||
word1(&rv) = bits[0];
|
||||
}
|
||||
else {
|
||||
word0(&rv) = NAN_WORD0;
|
||||
word1(&rv) = NAN_WORD1;
|
||||
word0(&rv) = 0x7ff80000;
|
||||
word1(&rv) = 0x0;
|
||||
}
|
||||
goto ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue