-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 9/13/2008 7:11 AM: > The test ends up calling sprintf(tmp, "%Ld", -0.0L), but
excuse the typo; I meant "%Lf", not "%Ld" > the system sprintf does not know how to print -0, so the result is > 0.000000 and lacks -. Does it make more sense to adjust the existing > gl_PRINTF_INFINITE_LONG_DOUBLE (which also tests for NaN) to add a test > for negative zero, or to add a new macro gl_PRINTF_ZERO_LONG_DOUBLE? I > can probably do most of the work, since I can test it on the Irix box, but > would like to make sure that I'm meeting your preferred style. At any rate, the Irix box also failed the infinite long double test, so it already has problem with inf and/or NaN, and the place to add code for - -0.0 should be relatively easy to locate. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjLyFUACgkQ84KuGfSFAYBG7wCeIOgw8gFuzVXRkRCGVM28CAoW PakAoM/BCiU31f2lZ3BLXF5sBh1UcN3R =ixDJ -----END PGP SIGNATURE-----