mirror of git://gcc.gnu.org/git/gcc.git
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
|
|
@ -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>
|
2012-06-21 Janne Blomqvist <jb@gcc.gnu.org>
|
||||||
|
|
||||||
PR fortran/39654
|
PR fortran/39654
|
||||||
|
|
|
||||||
|
|
@ -1888,7 +1888,7 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p,
|
||||||
read_real (dtp, p, kind);
|
read_real (dtp, p, kind);
|
||||||
/* Copy value back to temporary if needed. */
|
/* Copy value back to temporary if needed. */
|
||||||
if (dtp->u.p.repeat_count > 0)
|
if (dtp->u.p.repeat_count > 0)
|
||||||
memcpy (dtp->u.p.value, p, kind);
|
memcpy (dtp->u.p.value, p, size);
|
||||||
break;
|
break;
|
||||||
case BT_COMPLEX:
|
case BT_COMPLEX:
|
||||||
read_complex (dtp, p, kind, size);
|
read_complex (dtp, p, kind, size);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue