diff options
| author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-12-28 01:40:23 +0000 |
|---|---|---|
| committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-12-28 01:40:23 +0000 |
| commit | cf7946521395a76bafc978c02b43e78536a71c0c (patch) | |
| tree | 12ba3fe42dffb08262da6b5bad1f6843ef4fee53 /libgfortran/io/transfer.c | |
| parent | 3415f511593e977c04a73cc3dbd48da0fa48c284 (diff) | |
| download | gcc-cf7946521395a76bafc978c02b43e78536a71c0c.zip gcc-cf7946521395a76bafc978c02b43e78536a71c0c.tar.gz gcc-cf7946521395a76bafc978c02b43e78536a71c0c.tar.bz2 | |
re PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)
2006-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/30014
*io/io.h (st_parameter_dt): Change *size and *iolength type to
GFC_IO_INT.
*io/transfer.c (finalize_transfer): Cast dtp->u.p.size_used to
GFC_IO_INT. (iolength_transfer): Cast size * nelems to GFC_IO_INT.
From-SVN: r120234
Diffstat (limited to 'libgfortran/io/transfer.c')
| -rw-r--r-- | libgfortran/io/transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 0139380..ddf5d00 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2539,7 +2539,7 @@ finalize_transfer (st_parameter_dt *dtp) GFC_INTEGER_4 cf = dtp->common.flags; if ((dtp->common.flags & IOPARM_DT_HAS_SIZE) != 0) - *dtp->size = (GFC_INTEGER_4) dtp->u.p.size_used; + *dtp->size = (GFC_IO_INT) dtp->u.p.size_used; if (dtp->u.p.eor_condition) { @@ -2615,7 +2615,7 @@ iolength_transfer (st_parameter_dt *dtp, bt type __attribute__((unused)), size_t size, size_t nelems) { if ((dtp->common.flags & IOPARM_DT_HAS_IOLENGTH) != 0) - *dtp->iolength += (GFC_INTEGER_4) size * nelems; + *dtp->iolength += (GFC_IO_INT) size * nelems; } |
