]> sourceware.org Git - newlib-cygwin.git/commit
Fix strtof ("-nan") returns positive NaN
authorMasamichi Hosoda <trueroad@trueroad.jp>
Tue, 14 Aug 2018 23:39:22 +0000 (08:39 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 16 Aug 2018 11:17:44 +0000 (13:17 +0200)
commitc8d4c99ecd84efb9f47d2af7ce52d5996d17d4a4
tree39cb49a148678ba7bc27627df19e2598aa055d04
parent4c8fa88e4da3afdcb48236a4317beb303c4bd955
Fix strtof ("-nan") returns positive NaN

strtof ("-nan") returned positive NaN instead of negative NaN.
strtod ("-nan") and strtold ("-nan") return negative NaN.

Linux glibc has been fixed
that strto{f|d|ld} ("-nan") returns negative NaN.
https://sourceware.org/bugzilla/show_bug.cgi?id=23007

This commit makes strtof preserves the negative sign bit
when parsing "-nan" like glibc.
newlib/libc/stdlib/strtod.c
This page took 0.027852 seconds and 5 git commands to generate.