From f841d957fa13c022a4d429dbd1175eaf99e71f7e Mon Sep 17 00:00:00 2001 From: bstarynk Date: Fri, 13 Mar 2009 10:05:52 +0000 Subject: 2009-03-13 Basile Starynkevitch MELT branch merged with trunk r144830 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@144832 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/ChangeLog | 6 ++++++ libgfortran/io/write_float.def | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libgfortran') diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 9da50d9d67f..4613306ce79 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-03-08 Jerry DeLisle + + PR libfortran/39402 + * io/write_float.def (output_float): Handle F0.d formatting correctly + for any d when value is 0.0. + 2009-03-01 Ralf Wildenhues * 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 */ -- cgit v1.2.1