diff options
Diffstat (limited to 'rt/tst-aio64.c')
-rw-r--r-- | rt/tst-aio64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rt/tst-aio64.c b/rt/tst-aio64.c index 4663d75562..93e8cb2136 100644 --- a/rt/tst-aio64.c +++ b/rt/tst-aio64.c @@ -77,14 +77,14 @@ test_file (const void *buf, size_t size, int fd, const char *msg) return 1; } - if (st.st_size != size) + if (st.st_size != (off_t) size) { error (0, errno, "%s: wrong size: %lu, should be %lu", msg, (unsigned long int) st.st_size, (unsigned long int) size); return 1; } - if (pread (fd, tmp, size, 0) != size) + if (pread (fd, tmp, size, 0) != (ssize_t) size) { error (0, errno, "%s: failed pread", msg); return 1; |