Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
6d3e9d84
Commit
6d3e9d84
authored
May 16, 2004
by
Paul Brook
Committed by
Paul Brook
May 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* io/format.c (write_real): Don't include padding in format.
From-SVN: r81922
parent
9152dcf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
libgfortran/ChangeLog
+4
-0
libgfortran/io/write.c
+3
-4
No files found.
libgfortran/ChangeLog
View file @
6d3e9d84
2004-05-16 Paul Brook <paul@codesourcery.com>
2004-05-16 Paul Brook <paul@codesourcery.com>
* io/format.c (write_real): Don't include padding in format.
2004-05-16 Paul Brook <paul@codesourcery.com>
* io/format.c (format_lex): Make c an int.
* io/format.c (format_lex): Make c an int.
2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
...
...
libgfortran/io/write.c
View file @
6d3e9d84
...
@@ -986,8 +986,7 @@ write_character (const char *source, int length)
...
@@ -986,8 +986,7 @@ write_character (const char *source, int length)
/* Output the Real number with default format.
/* Output the Real number with default format.
According to DEC fortran LRM, default format for
REAL(4) is 1PG14.7E2, and REAL(8) is 1PG23.15E3 */
REAL(4) is 1PG15.7E2, and for REAL(8) is 1PG25.15E3 */
static
void
static
void
write_real
(
const
char
*
source
,
int
length
)
write_real
(
const
char
*
source
,
int
length
)
...
@@ -998,13 +997,13 @@ write_real (const char *source, int length)
...
@@ -998,13 +997,13 @@ write_real (const char *source, int length)
g
.
scale_factor
=
1
;
g
.
scale_factor
=
1
;
if
(
length
<
8
)
if
(
length
<
8
)
{
{
f
.
u
.
real
.
w
=
1
5
;
f
.
u
.
real
.
w
=
1
4
;
f
.
u
.
real
.
d
=
7
;
f
.
u
.
real
.
d
=
7
;
f
.
u
.
real
.
e
=
2
;
f
.
u
.
real
.
e
=
2
;
}
}
else
else
{
{
f
.
u
.
real
.
w
=
2
4
;
f
.
u
.
real
.
w
=
2
3
;
f
.
u
.
real
.
d
=
15
;
f
.
u
.
real
.
d
=
15
;
f
.
u
.
real
.
e
=
3
;
f
.
u
.
real
.
e
=
3
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment