(__opendir): Add cast to avoid warning.
authordrepper <drepper>
Sun, 26 Nov 2000 09:50:20 +0000 (09:50 +0000)
committerdrepper <drepper>
Sun, 26 Nov 2000 09:50:20 +0000 (09:50 +0000)
sysdeps/unix/opendir.c

index cf83847..461f82b 100644 (file)
@@ -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;