From ce4200f6793e0d8b03f5b964ac91565dcee920e8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 7 Jul 1997 19:00:51 +0000 Subject: [PATCH] (Ffile_attributes): Use cast to avoid warnings. --- src/dired.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- 2.39.2