changeset 97770:673a18ae9bfa

(Ffile_attributes): Avoid compiler warning in bitshift.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 27 Aug 2008 19:03:42 +0000
parents dde686d85ffb
children f8bd5f0db6f3
files src/dired.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Wed Aug 27 19:03:33 2008 +0000
+++ b/src/dired.c	Wed Aug 27 19:03:42 2008 +0000
@@ -999,8 +999,10 @@
   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),