Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.

This commit is contained in:
Serhiy Storchaka 2013-01-02 18:22:23 +02:00
parent cc85a156ae
commit 404fa924c3
1 changed files with 3 additions and 1 deletions

View File

@ -1951,7 +1951,9 @@ _pystat_fromstructstat(STRUCT_STAT *st)
#else #else
PyStructSequence_SET_ITEM(v, 1, PyLong_FromLong((long)st->st_ino)); PyStructSequence_SET_ITEM(v, 1, PyLong_FromLong((long)st->st_ino));
#endif #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, PyStructSequence_SET_ITEM(v, 2,
PyLong_FromLongLong((PY_LONG_LONG)st->st_dev)); PyLong_FromLongLong((PY_LONG_LONG)st->st_dev));
#else #else