strtod: handle NaN properly

This commit is contained in:
Gavin Hayes 2023-09-21 21:36:59 -04:00
parent 0c7dcd90de
commit b00d4c0967

View file

@ -237,8 +237,8 @@ dig_done:
word1(&rv) = bits[0]; word1(&rv) = bits[0];
} }
else { else {
word0(&rv) = NAN_WORD0; word0(&rv) = 0x7ff80000;
word1(&rv) = NAN_WORD1; word1(&rv) = 0x0;
} }
goto ret; goto ret;
} }