On 28/04/18 12:57, George Koehler wrote:
On Mon, 16 Apr 2018 18:06:32 -0400
George Koehler <kern...@gmail.com> wrote:
In some platforms (like amd64, but not macppc), strtod(3)
flips the sign of not-a-number (nan). It changes "nan" into
-nan and "-nan" into nan.
I had sent a patch for strtod() on amd64, but I forgot to fix
strtof() and strtold(). I now send a patch for all 3 functions on
amd64. This patch also tries to fix alpha, arm, and i386, but I only
tested amd64. I know that powerpc doesn't have the bug, and I guess
that other arches might not have the bug.
I ran into this bug in the test suite for glib, so I tested the fix on
the other arches, verified that the rest (except sh and m88k) are
unaffected, and committed it. Thanks for doing the tricky part for me.