aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-05 22:55:38 -0700
committerPaul Eggert2011-06-05 22:55:38 -0700
commitdfe18f824fd582350f8a55e402f210b40ab74083 (patch)
tree7f15ae7c614c440c1cc738cf17fac8b2315a8d0b /src
parent0157c761391e63e3cd79a6757bbb1e5a494fae8c (diff)
downloademacs-dfe18f824fd582350f8a55e402f210b40ab74083.tar.gz
emacs-dfe18f824fd582350f8a55e402f210b40ab74083.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 9f54dcc3bc5..4269bf4655b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-06-06 Paul Eggert <eggert@cs.ucla.edu> 12011-06-06 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * dired.c (Ffile_attributes): Don't assume EMACS_INT has >32 bits.
4
3 Don't assume time_t can fit into int. 5 Don't assume time_t can fit into int.
4 * buffer.h (struct buffer.modtime): Now time_t, not int. 6 * buffer.h (struct buffer.modtime): Now time_t, not int.
5 * fileio.c (Fvisited_file_modtime): No need for time_t cast now. 7 * fileio.c (Fvisited_file_modtime): No need for time_t cast now.
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. */