diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2008-05-15 19:32:00 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2008-05-15 19:32:00 +0300 |
commit | 3044d369519284bc36ef3f1e15335e34f28c0860 (patch) | |
tree | 8a3d5e0c0789f98c040e8259f2431e2876d2c151 /libgfortran | |
parent | 7c1b4aba7203b95cd53fa8384271190281b934e7 (diff) | |
download | gcc-3044d369519284bc36ef3f1e15335e34f28c0860.zip gcc-3044d369519284bc36ef3f1e15335e34f28c0860.tar.gz gcc-3044d369519284bc36ef3f1e15335e34f28c0860.tar.bz2 |
Part 1 of PR25561, fix compile warnings forgotten in actual commit.
From-SVN: r135379
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/io/fbuf.c | 2 | ||||
-rw-r--r-- | libgfortran/io/transfer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/io/fbuf.c b/libgfortran/io/fbuf.c index ba6f710..e34fc75 100644 --- a/libgfortran/io/fbuf.c +++ b/libgfortran/io/fbuf.c @@ -126,7 +126,7 @@ fbuf_seek (gfc_unit * u, gfc_offset off) if (pos < 0) return -1; u->fbuf->ptr = u->fbuf->buf + pos; - if (pos > u->fbuf->act) + if (pos > (gfc_offset) u->fbuf->act) u->fbuf->act = pos; return 0; } diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 8353f3d..ff7e651 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2290,7 +2290,7 @@ skip_record (st_parameter_dt *dtp, size_t bytes) { rlength = (MAX_READ > (size_t) dtp->u.p.current_unit->bytes_left_subrecord) ? - MAX_READ : dtp->u.p.current_unit->bytes_left_subrecord; + MAX_READ : (size_t) dtp->u.p.current_unit->bytes_left_subrecord; if (sread (dtp->u.p.current_unit->s, p, &rlength) != 0) { |