Part 1 of PR25561, fix compile warnings forgotten in actual commit.

From-SVN: r135379
This commit is contained in:
Janne Blomqvist 2008-05-15 19:32:00 +03:00
parent 7c1b4aba72
commit 3044d36951
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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)
{