diff options
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/write_float.def | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 9da50d9d67f..5217b8c8c84 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-03-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/39409 + * io/write_float.def (output_float): Handle F0.d formatting correctly + for any d when value is 0.0. + 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure: Regenerate. diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def index f94fde30b70..17bd7844560 100644 --- a/libgfortran/io/write_float.def +++ b/libgfortran/io/write_float.def @@ -122,7 +122,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, char *buffer, size_t size, /* Handle special cases. */ if (w == 0) - w = 2; + w = d + 2; /* For this one we choose to not output a decimal point. F95 10.5.1.2.1 */ |