From: Richard M. Stallman Date: Mon, 7 Jul 1997 19:00:51 +0000 (+0000) Subject: (Ffile_attributes): Use cast to avoid warnings. X-Git-Tag: emacs-20.1~1280 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce4200f6793e0d8b03f5b964ac91565dcee920e8;p=emacs.git (Ffile_attributes): Use cast to avoid warnings. --- diff --git a/src/dired.c b/src/dired.c index ea0624dd535..7fc39dcd722 100644 --- a/src/dired.c +++ b/src/dired.c @@ -685,7 +685,8 @@ If file does not exist, returns nil.") #ifdef BSD4_3 #undef BSD4_2 /* ok, you can look again without throwing up */ #endif - if (s.st_ino & ((-1) << VALBITS)) + /* Cast -1 to avoid warning if int is not as wide as VALBITS. */ + if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS)) /* To allow inode numbers larger than VALBITS, separate the bottom 16 bits. */ values[10] = Fcons (make_number (s.st_ino >> 16),