Fix sign of NaN returned by strtod (bug 23007).
commitb0debe14fcfe690eee8b5e693554dd258603805d
authorHerman ten Brugge <hermantenbrugge@home.nl>
Fri, 15 Jun 2018 17:35:17 +0000 (15 17:35 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 15 Jun 2018 17:35:17 +0000 (15 17:35 +0000)
treec393efa15c55dba3efa488b10a6bd861f3372791
parent14beef7575099f6373f9a45b4656f1e3675f7372
Fix sign of NaN returned by strtod (bug 23007).

As reported in bug 23007, strtod ignores any sign in the input string
in the case of a NaN result.  Thes patch fixes this.

Tested for x86_64 (in conjunction with tests to be added separately).

[BZ #23007]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
appropriate sign.
ChangeLog
stdlib/strtod_l.c