STINNER Victor added the comment: > New changeset e5427b0b2bf7 by Victor Stinner in branch 'default': > Issue #11016: Try to fix compilaton of the new _stat.c module on Windows > http://hg.python.org/cpython/rev/e5427b0b2bf7
@Christian: Can you please review this commit? By the way, mode_t is also defined in import.c: #ifdef MS_WINDOWS /* for stat.st_mode */ typedef unsigned short mode_t; /* for _mkdir */ #include <direct.h> #endif And stat_filemode() should detect integer overflow. mode_t is a 32-bit unsigned integer on Linux, and now a 16-bit integer on Windows, whereas stat_filemode() uses an unsigned long (which 32 bit on Windows, and 32 or 64 bits on Linux). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11016> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com