[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-strtod: fix typos: s/abs/fabs/
From: |
Eric Blake |
Subject: |
Re: test-strtod: fix typos: s/abs/fabs/ |
Date: |
Mon, 14 Apr 2008 06:21:33 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jim Meyering on 4/14/2008 2:37 AM:
| Since "abs" truncates any value in (-1..1) to 0, the tests below would
| succeed for any value in a much larger than intended range: (-0.5, 1.5).
|
| The corrected (stricter) tests still pass on at least a few targets,
| so I've pushed this change:
|
| test-strtod: fix typos: s/abs/fabs/
| * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
Thanks.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----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
iEYEARECAAYFAkgDTE0ACgkQ84KuGfSFAYCdXgCfUznjms/zgLCzCuGGBNCJwN9W
ONwAoIWvvaN3Fo95wqHwX8RU7igVxVU7
=mI9H
-----END PGP SIGNATURE-----