about summary refs log tree commit diff
path: root/rt/tst-aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio.c')
-rw-r--r--rt/tst-aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rt/tst-aio.c b/rt/tst-aio.c
index 1b24542441..24efad3e23 100644
--- a/rt/tst-aio.c
+++ b/rt/tst-aio.c
@@ -76,14 +76,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;