cpython: st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set
http://hg.python.org/cpython/rev/3738d270c54a changeset: 81176:3738d270c54a parent: 81174:e971a70984b8 user: Brian Curtin <brian@python.org> date: Mon Dec 31 11:59:48 2012 -0600 summary: st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines. files: Modules/posixmodule.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1184,13 +1184,13 @@ #define HAVE_STAT_NSEC 1 struct win32_stat{ - int st_dev; + unsigned long st_dev; __int64 st_ino; unsigned short st_mode; int st_nlink; int st_uid; int st_gid; - int st_rdev; + unsigned long st_rdev; __int64 st_size; time_t st_atime; int st_atime_nsec; -- Repository URL: http://hg.python.org/cpython
participants (1)
-
brian.curtin