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:
parent
12e4afe4e1
commit
023d776a11
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue