mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user