Commit 023d776a by Roger Sayle Committed by Roger Sayle

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
parent 12e4afe4
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> 2004-07-18 Bud Davis <bdavis9659@comcast.net>
* configure.ac: Add check for LFS support. * configure.ac: Add check for LFS support.
......
...@@ -523,7 +523,7 @@ write_float (fnode *f, const char *source, int len) ...@@ -523,7 +523,7 @@ write_float (fnode *f, const char *source, int len)
} }
memset(p, ' ', nb); memset(p, ' ', nb);
res = isinf (n); res = !isnan (n);
if (res != 0) if (res != 0)
{ {
if (signbit(n)) if (signbit(n))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment