diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-23 05:43:16 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-23 05:43:16 +0000 |
commit | eb37e5909ba59f14379bbd94fa4ca57b7395506f (patch) | |
tree | 002c176b369de590acfdb905fdac6b84497445fc /libgfortran/io | |
parent | 3838b9ae26869d5eebf8716293d27594c421c28a (diff) | |
download | gcc-eb37e5909ba59f14379bbd94fa4ca57b7395506f.tar.gz |
2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/30910
* io/write.c (output_float): Add condition of format F only for
special case rounding with zero precision.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c index 9ff48049dac..2a81d27b8a9 100644 --- a/libgfortran/io/write.c +++ b/libgfortran/io/write.c @@ -488,7 +488,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value) value = -value; /* Special case when format specifies no digits after the decimal point. */ - if (d == 0) + if (d == 0 && ft == FMT_F) { if (value < 0.5) value = 0.0; |