Commit 80ad1971 by Jerry DeLisle

re PR fortran/37863 (Display of a value close but less to 1 shows 2 with '(F3.0)')

2008-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org

	PR libfortran/37707
	* io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
	* io/io.h (st_parameter_44): Fix id type declaration.

From-SVN: r141207
parent 9edfa17f
2008-10-17 Jerry DeLisle <jvdelisle@gcc.gnu.org
PR libfortran/37707
* io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
* io/io.h (st_parameter_44): Fix id type declaration.
2008-10-16 Thomas Koenig <tkoenig@gcc.gnu.org> 2008-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
* io/file_pos.c (unformatted_backspace): Normal case is * io/file_pos.c (unformatted_backspace): Normal case is
......
...@@ -458,7 +458,7 @@ typedef struct st_parameter_43 ...@@ -458,7 +458,7 @@ typedef struct st_parameter_43
typedef struct st_parameter_44 typedef struct st_parameter_44
{ {
GFC_IO_INT *id; GFC_INTEGER_4 *id;
GFC_IO_INT pos; GFC_IO_INT pos;
CHARACTER1 (asynchronous); CHARACTER1 (asynchronous);
CHARACTER2 (blank); CHARACTER2 (blank);
......
...@@ -746,7 +746,7 @@ sprintf (buffer, "%+-#" STR(MIN_FIELD_WIDTH) ".*" \ ...@@ -746,7 +746,7 @@ sprintf (buffer, "%+-#" STR(MIN_FIELD_WIDTH) ".*" \
if (tmp < 0.5)\ if (tmp < 0.5)\
tmp = 0.0;\ tmp = 0.0;\
else if (tmp < 1.0)\ else if (tmp < 1.0)\
tmp = tmp + 0.5;\ tmp = 1.0;\
}\ }\
zero_flag = (tmp == 0.0);\ zero_flag = (tmp == 0.0);\
\ \
......
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