# HG changeset patch # User Eli Zaretskii # Date 1205515835 0 # Node ID 5bb79def24e13672be7f12db1556d2b71b463171 # Parent eec1450e060e44debafc8d2921c06c1529b6a710 (Ffile_attributes) [WINDOWSNT]: Force inode be positive. diff -r eec1450e060e -r 5bb79def24e1 src/dired.c --- a/src/dired.c Fri Mar 14 17:14:09 2008 +0000 +++ b/src/dired.c Fri Mar 14 17:30:35 2008 +0000 @@ -1021,7 +1021,17 @@ values[9] = (gid != getegid ()) ? Qt : Qnil; #endif /* BSD4_2 (or BSD4_3) */ /* Shut up GCC warnings in FIXNUM_OVERFLOW_P below. */ +#ifdef WINDOWSNT + { + /* The bit-shuffling we do in w32.c:stat can turn on the MSB, which + will produce negative inode numbers. People don't like that, so + force a positive inode instead. */ + unsigned short tem = s.st_ino; + ino = tem; + } +#else ino = s.st_ino; +#endif if (FIXNUM_OVERFLOW_P (ino)) /* To allow inode numbers larger than VALBITS, separate the bottom 16 bits. */