mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-14 06:59:10 +00:00
Fix strtod NaN handling / fix SIGSEGV in testlib/showerror (#901)
This commit is contained in:
parent
3ffc17c50e
commit
cc8c56e814
3 changed files with 19 additions and 4 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