Commit 5eb90a1c by Jerry DeLisle

write.c (output_float): Update condition to not error when decimal precision in…

write.c (output_float): Update condition to not error when decimal precision in format specifier is zero.

2006-04-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io/write.c (output_float): Update condition to not error when
	decimal precision in format specifier is zero.

From-SVN: r112656
parent 76c6ea0c
2006-04-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* io/write.c (output_float): Update condition to not error when
decimal precision in format specifier is zero.
2006-04-01 Francois-Xavier Coudert <coudert@clipper.ens.fr> 2006-04-01 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* config/fpu-387.h: Use previously added SSE code in all * config/fpu-387.h: Use previously added SSE code in all
......
...@@ -473,7 +473,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value) ...@@ -473,7 +473,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value)
ndigits - 1, value); ndigits - 1, value);
/* Check the resulting string has punctuation in the correct places. */ /* Check the resulting string has punctuation in the correct places. */
if (buffer[2] != '.' || buffer[ndigits + 2] != 'e') if (d != 0 && (buffer[2] != '.' || buffer[ndigits + 2] != 'e'))
internal_error (&dtp->common, "printf is broken"); internal_error (&dtp->common, "printf is broken");
/* Read the exponent back in. */ /* Read the exponent back in. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment