Part 1 of PR25561, fix compile warnings forgotten in actual commit.
authorJanne Blomqvist <jb@gcc.gnu.org>
Thu, 15 May 2008 16:32:00 +0000 (19:32 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Thu, 15 May 2008 16:32:00 +0000 (19:32 +0300)
From-SVN: r135379

libgfortran/io/fbuf.c
libgfortran/io/transfer.c

index ba6f71011dd77176e363750bd1bbc3c12ffec4df..e34fc75f93738afcae214e56b4d0afda78b5040c 100644 (file)
@@ -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;
 }
index 8353f3ddb74c9495f1a5990dea7232fb132b55c8..ff7e651016eafb1dd3c81c4fa886f058f62e8095 100644 (file)
@@ -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)
            {