write.c (write_float): Use the slightly more portable isnan in preference to isinf.
authorRoger Sayle <roger@eyesopen.com>
Sun, 1 Aug 2004 13:40:52 +0000 (13:40 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 1 Aug 2004 13:40:52 +0000 (13:40 +0000)
* io/write.c (write_float): Use the slightly more portable isnan
in preference to isinf.

From-SVN: r85407

libgfortran/ChangeLog
libgfortran/io/write.c

index 3168f4e1b7090a41dea15c5157e6aa02d14d0f02..de627aaaa039ad72ec6975e7ccda7ec8f687606f 100644 (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. 
index 749a34a48341666b5a5ddbd34e9f9af3e3f5fb03..1af8537d7512d501d08ab996223a9355c13079c8 100644 (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))