Re: strtod ("nan") returns negative NaN

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Aug 15 00:05, Masamichi Hosoda wrote:
> Hi
> 
> I've found that strtod ("nan") returns negative NaN on Cygwin 64 bit.
> https://cygwin.com/ml/cygwin/2018-08/msg00168.html
> 
> On Linux with glibc, both strtod ("nan")
> and strtod ("-nan") return positive NaN.
> 
> So I've created the patch that behaves like glibc.
> Both strtod ("nan") and strtod ("-nan") return positive NaN.

Looks good on Cygwin.  Any comments from non-Cygwin devs?
If nobody has a problem I push the patch in the next days.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlty/MkACgkQ9TYGna5E
T6DIdg/+Mce9pjK6h9srorlYRH2Z+RSIrrzk08Btpj1jV/FDMrV5C4S+p8dy7uAo
w/7L07h06xuF6Ujh9xYHvhePaO32VytLsyfhjlf7LZmTS4HknIdS27b90aw43iU6
dSyYal43geMdiQ6J86r20AtmccBgyiMQOv6XeEO075u87aEQ7s6wsLqVTFgM7/RL
HpZEVaWJQb+NjF3Tuwd6kZbVPZx8Sug/I8BbR3RPHwIdIfoAsBrzsQJP0sRdOdlT
bEs/gw8PL/3SevTLMRI7zbKaDcvKEsGb0ihWv+CPKqo1EMFWAgkwCjDwdRGNfT0v
JW9Ak5BxM4YKRq/51JIa6r/icPjOK+lLStsF0YmE9RHwm1bUHrj9GwRJmjLgC+Mn
y7bG/dBmO+8lLMEqm5e+jnmFjOfl8HYj/wIYHZB60gAYzZA+riYecDAnLN2njc2p
6fn4H8D/+U0qrxAlZFLyP6BxKMckdtQ36OKQo6yCbc6cuor2BrM0KeelJsBBSWHV
PVpROx4jJ+VOdEzI3glcf2SCD129UrzHT7LGt+CE+aDKgs9VOwkf2xsmK2TqUseY
3fYJI4UtP9Mrx627p8SeRZsF9OZnZuiK3z3SYd4TgiN9bluFo2tH+d9Xt74PPh2k
tpkZSElqAUzOwAhowu8itr6+jpsR61FYn7+THFIdTa4AXSTUB5o=
=os/n
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.