From d53cb9ea605018b59e7456befb770db470759cb3 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Mon, 9 Mar 2009 04:47:51 +0000 Subject: [PATCH] re PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives **) 2009-03-08 Jerry DeLisle PR libfortran/39409 * io/write_float.def (output_float): Handle F0.d formatting correctly for any d when value is 0.0. From-SVN: r144718 --- libgfortran/ChangeLog | 6 ++++++ libgfortran/io/write_float.def | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 9da50d9d67fa..5217b8c8c840 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-03-08 Jerry DeLisle + + 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 * configure: Regenerate. diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def index f94fde30b702..17bd78445601 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 */ -- 2.47.2