1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
This commit is contained in:
Ulrich Drepper
2000-11-26 09:50:34 +00:00
parent c3301189bd
commit ff8beceed1
2 changed files with 4 additions and 1 deletions

View 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;