2004-06-27 Bud Davis <bdavis9659@comcast.net>
PR gfortran/12839
* io/write.c (write_float): check signbit for Infinity.
From-SVN: r83757
+2004-06-27 Bud Davis <bdavis9659@comcast.net>
+
+ PR gfortran/12839
+ * io/write.c (write_float): check signbit for Infinity.
+
2004-06-26 Bud Davis <bdavis9659@comcast.net>
PR gfortran/16196
}
memset(p, ' ', nb);
- res = isinf (n);
+ res = isinf (n);
if (res != 0)
{
- if (res > 0)
- fin = '+';
- else
+ if (signbit(n))
fin = '-';
+ else
+ fin = '+';
if (nb > 7)
memcpy(p + nb - 8, "Infinity", 8);