about summary refs log tree commit diff
path: root/sysdeps/unix/opendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/opendir.c')
-rw-r--r--sysdeps/unix/opendir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c
index cf83847847..461f82bc97 100644
--- a/sysdeps/unix/opendir.c
+++ b/sysdeps/unix/opendir.c
@@ -131,7 +131,8 @@ __opendir (const char *name)
     goto lose;
 
 #ifdef _STATBUF_ST_BLKSIZE
-  if (__builtin_expect (statbuf.st_blksize < sizeof (struct dirent), 0))
+  if (__builtin_expect ((size_t) statbuf.st_blksize < sizeof (struct dirent),
+			0))
     allocation = sizeof (struct dirent);
   else
     allocation = statbuf.st_blksize;