]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffile_attributes): Use FIXNUM_OVERFLOW_P.
authorGerd Moellmann <gerd@gnu.org>
Sat, 6 Oct 2001 23:41:39 +0000 (23:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 6 Oct 2001 23:41:39 +0000 (23:41 +0000)
src/dired.c

index 83447a6de0683b532112fd23b47ae35456d9f4ba..04535012d9003cbb0c2bd34d7dee0845df223de8 100644 (file)
@@ -891,7 +891,7 @@ If file does not exist, returns nil.")
   values[9] = (s.st_gid != getegid ()) ? Qt : Qnil;
 #endif /* BSD4_2 (or BSD4_3) */
   /* Cast -1 to avoid warning if int is not as wide as VALBITS.  */
-  if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS))
+  if (FIXNUM_OVERFLOW_P (s.st_ino))
     /* To allow inode numbers larger than VALBITS, separate the bottom
        16 bits.  */
     values[10] = Fcons (make_number (s.st_ino >> 16),
@@ -901,7 +901,7 @@ If file does not exist, returns nil.")
     values[10] = make_number (s.st_ino);
 
   /* Likewise for device.  */
-  if (s.st_dev & (((EMACS_INT) (-1)) << VALBITS))
+  if (FIXNUM_OVERFLOW_P (s.st_dev))
     values[11] = Fcons (make_number (s.st_dev >> 16),
                        make_number (s.st_dev & 0xffff));
   else