[Python-checkins] cpython: Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.
serhiy.storchaka
python-checkins at python.org
Wed Jan 2 17:23:55 CET 2013
http://hg.python.org/cpython/rev/07d07111cec9
changeset: 81239:07d07111cec9
parent: 81235:290189f6936c
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Jan 02 18:22:23 2013 +0200
summary:
Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.
files:
Modules/posixmodule.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1951,7 +1951,9 @@
#else
PyStructSequence_SET_ITEM(v, 1, PyLong_FromLong((long)st->st_ino));
#endif
-#if defined(HAVE_LONG_LONG) && !defined(MS_WINDOWS)
+#ifdef MS_WINDOWS
+ PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev));
+#elif defined(HAVE_LONG_LONG)
PyStructSequence_SET_ITEM(v, 2,
PyLong_FromLongLong((PY_LONG_LONG)st->st_dev));
#else
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list