re PR fortran/30910 ([Regression 4.2, 4.3] Gfortran: ES format not quite right...)
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. From-SVN: r122250
This commit is contained in:
parent
7a2a25ab4f
commit
9014618cb9
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
|
||||
|
||||
PR libfortran/30533
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user