list_read.c (list_formatted_read_scalar): Fix copying real value back to temporary.
* io/list_read.c (list_formatted_read_scalar): Fix copying real value back to temporary. From-SVN: r189856
This commit is contained in:
parent
d16586194f
commit
a35c9beff6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* io/list_read.c (list_formatted_read_scalar): Fix copying real
|
||||
value back to temporary.
|
||||
|
||||
2012-06-21 Janne Blomqvist <jb@gcc.gnu.org>
|
||||
|
||||
PR fortran/39654
|
||||
|
|
|
@ -1888,7 +1888,7 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p,
|
|||
read_real (dtp, p, kind);
|
||||
/* Copy value back to temporary if needed. */
|
||||
if (dtp->u.p.repeat_count > 0)
|
||||
memcpy (dtp->u.p.value, p, kind);
|
||||
memcpy (dtp->u.p.value, p, size);
|
||||
break;
|
||||
case BT_COMPLEX:
|
||||
read_complex (dtp, p, kind, size);
|
||||
|
|
Loading…
Add table
Reference in a new issue