From ff8ddc7b318ba1c33147ddbb094cf832ebf4fa1d Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 27 Aug 2008 19:03:42 +0000 Subject: [PATCH] (Ffile_attributes): Avoid compiler warning in bitshift. --- src/dired.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dired.c b/src/dired.c index be654670e9d..143e9477603 100644 --- a/src/dired.c +++ b/src/dired.c @@ -999,8 +999,10 @@ which see. */) else { /* To allow inode numbers beyond 32 bits, separate into 2 24-bit - high parts and a 16-bit bottom part. */ - EMACS_INT high_ino = s.st_ino >> 32; + high parts and a 16-bit bottom part. + The code on the next line avoids a compiler warning on some + systems (bug#766). */ + EMACS_INT high_ino = s.st_ino >> 31 >> 1; EMACS_INT low_ino = s.st_ino & 0xffffffff; values[10] = Fcons (make_number (high_ino >> 8), -- 2.39.5