diff options
author | Brian Curtin <brian@python.org> | 2012-12-31 17:59:48 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2012-12-31 17:59:48 (GMT) |
commit | 87e63a273c53cc7cd35f0d41d1fdc7a9fe186055 (patch) | |
tree | bd378648cd9264f00765c4db95b297de9c7e958d /Modules/posixmodule.c | |
parent | b4f39e85f2199bb9344e9b49feed3f6a45a318de (diff) | |
download | cpython-87e63a273c53cc7cd35f0d41d1fdc7a9fe186055.zip cpython-87e63a273c53cc7cd35f0d41d1fdc7a9fe186055.tar.gz cpython-87e63a273c53cc7cd35f0d41d1fdc7a9fe186055.tar.bz2 |
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.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 064d162..e53e76c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1184,13 +1184,13 @@ win32_wchdir(LPCWSTR path) #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; |