about summary refs log tree commit diff
path: root/nptl/tst-rwlock4.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-rwlock4.c')
-rw-r--r--nptl/tst-rwlock4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/tst-rwlock4.c b/nptl/tst-rwlock4.c
index b3dddd9d33..1fb47f7cd3 100644
--- a/nptl/tst-rwlock4.c
+++ b/nptl/tst-rwlock4.c
@@ -64,7 +64,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       return 1;