From ff8beceed165a7a411a63e4a78fd93f810bdcb14 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Nov 2000 09:50:34 +0000 Subject: Update. * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning. --- sysdeps/unix/opendir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c index cf83847..461f82b 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; -- cgit v1.1