aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dired.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dired.c b/src/dired.c
index 83447a6de06..04535012d90 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -891,7 +891,7 @@ If file does not exist, returns nil.")
891 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; 891 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil;
892#endif /* BSD4_2 (or BSD4_3) */ 892#endif /* BSD4_2 (or BSD4_3) */
893 /* Cast -1 to avoid warning if int is not as wide as VALBITS. */ 893 /* Cast -1 to avoid warning if int is not as wide as VALBITS. */
894 if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS)) 894 if (FIXNUM_OVERFLOW_P (s.st_ino))
895 /* To allow inode numbers larger than VALBITS, separate the bottom 895 /* To allow inode numbers larger than VALBITS, separate the bottom
896 16 bits. */ 896 16 bits. */
897 values[10] = Fcons (make_number (s.st_ino >> 16), 897 values[10] = Fcons (make_number (s.st_ino >> 16),
@@ -901,7 +901,7 @@ If file does not exist, returns nil.")
901 values[10] = make_number (s.st_ino); 901 values[10] = make_number (s.st_ino);
902 902
903 /* Likewise for device. */ 903 /* Likewise for device. */
904 if (s.st_dev & (((EMACS_INT) (-1)) << VALBITS)) 904 if (FIXNUM_OVERFLOW_P (s.st_dev))
905 values[11] = Fcons (make_number (s.st_dev >> 16), 905 values[11] = Fcons (make_number (s.st_dev >> 16),
906 make_number (s.st_dev & 0xffff)); 906 make_number (s.st_dev & 0xffff));
907 else 907 else