diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-09 21:29:05 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-09 21:29:05 +0000 |
commit | b28f02966c500957deb1c93c8657452dd7a19365 (patch) | |
tree | d7f5ac409ece4de3e2555afdcdec25e3a60813f4 /libdiskfs | |
parent | e2bf5d8af936c261c24cacb42dffad05e21836c8 (diff) |
(diskfs_S_io_read): Cast MAKREAD to off_t in comparison.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c index a25f3801..aac72a7b 100644 --- a/libdiskfs/io-read.c +++ b/libdiskfs/io-read.c @@ -49,7 +49,7 @@ diskfs_S_io_read (struct protid *cred, if (off > np->dn_stat.st_size) maxread = 0; - else if (off + maxread > np->dn_stat.st_size) + else if (off + (off_t) maxread > np->dn_stat.st_size) maxread = np->dn_stat.st_size - off; if (maxread > *datalen) |