write.c (write_float): Use the slightly more portable isnan in preference to isinf.

* io/write.c (write_float): Use the slightly more portable isnan
	in preference to isinf.

From-SVN: r85407
This commit is contained in:
Roger Sayle 2004-08-01 13:40:52 +00:00 committed by Roger Sayle
parent 12e4afe4e1
commit 023d776a11
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-08-01 Roger Sayle <roger@eyesopen.com>
* io/write.c (write_float): Use the slightly more portable isnan
in preference to isinf.
2004-07-18 Bud Davis <bdavis9659@comcast.net>
* configure.ac: Add check for LFS support.

View File

@ -523,7 +523,7 @@ write_float (fnode *f, const char *source, int len)
}
memset(p, ' ', nb);
res = isinf (n);
res = !isnan (n);
if (res != 0)
{
if (signbit(n))