mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 20:03:58 +08:00
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
@ -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…
Reference in New Issue
Block a user