Commit 294f1153 authored by Eli Zaretskii's avatar Eli Zaretskii

(Ffile_attributes) [WINDOWSNT]: Force inode be positive.

parent ae0ece90
2008-03-14 Eli Zaretskii <eliz@gnu.org>
* dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
* w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2008-03-14 Jason Rumney <jasonr@gnu.org>
......
......@@ -1021,7 +1021,17 @@ Elements of the attribute list are:
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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment