diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2008-08-27 19:03:42 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2008-08-27 19:03:42 +0000 |
commit | ff8ddc7b318ba1c33147ddbb094cf832ebf4fa1d (patch) | |
tree | ed3b3b6f8c0b92a51d90848d2a20129ba249a3ce /src/dired.c | |
parent | b9fb8cf010d02c7fe120f9bd16c9f2f5200e9995 (diff) | |
download | emacs-ff8ddc7b318ba1c33147ddbb094cf832ebf4fa1d.tar.gz |
(Ffile_attributes): Avoid compiler warning in bitshift.
Diffstat (limited to 'src/dired.c')
-rw-r--r-- | src/dired.c | 6 |
1 files 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), |