aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-03 11:15:45 -0700
committerPaul Eggert2011-06-03 11:15:45 -0700
commitfee1a3f195e16a6042eea45d012516c900e6f94e (patch)
tree85df5605b31999b0f41d291baf86ee5a0a9f25ae /src
parent810ef6bcdf43f657e8f40ff5439fe684173c4b24 (diff)
parent76118f10b098e0cf03050b277401b8646dce5706 (diff)
downloademacs-fee1a3f195e16a6042eea45d012516c900e6f94e.tar.gz
emacs-fee1a3f195e16a6042eea45d012516c900e6f94e.zip
* dired.c (Ffile_attributes): Don't assume EMACS_INT has >32 bits.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/dired.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fa132593f73..2d139e0bfc9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-06-03 Paul Eggert <eggert@cs.ucla.edu> 12011-06-03 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * dired.c (Ffile_attributes): Don't assume EMACS_INT has >32 bits.
4
3 * lisp.h: Include <intprops.h>, as it'll useful in later changes. 5 * lisp.h: Include <intprops.h>, as it'll useful in later changes.
4 * character.c, data.c, editfns.c, insdel.c, intervals.c: 6 * character.c, data.c, editfns.c, insdel.c, intervals.c:
5 Don't include <intprops.h>, since lisp.h does. 7 Don't include <intprops.h>, since lisp.h does.
diff --git a/src/dired.c b/src/dired.c
index 60d7bc64974..1e587353f6d 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -1013,12 +1013,11 @@ so last access time will always be midnight of that day. */)
1013 The code on the next line avoids a compiler warning on 1013 The code on the next line avoids a compiler warning on
1014 systems where st_ino is 32 bit wide. (bug#766). */ 1014 systems where st_ino is 32 bit wide. (bug#766). */
1015 EMACS_INT high_ino = s.st_ino >> 31 >> 1; 1015 EMACS_INT high_ino = s.st_ino >> 31 >> 1;
1016 EMACS_INT low_ino = s.st_ino & 0xffffffff;
1017 1016
1018 values[10] = Fcons (make_number (high_ino >> 8), 1017 values[10] = Fcons (make_number (high_ino >> 8),
1019 Fcons (make_number (((high_ino & 0xff) << 16) 1018 Fcons (make_number (((high_ino & 0xff) << 16)
1020 + (low_ino >> 16)), 1019 + (s.st_ino >> 16 & 0xffff)),
1021 make_number (low_ino & 0xffff))); 1020 make_number (s.st_ino & 0xffff)));
1022 } 1021 }
1023 1022
1024 /* Likewise for device. */ 1023 /* Likewise for device. */