Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.
This commit is contained in:
parent
cc85a156ae
commit
404fa924c3
|
@ -1951,7 +1951,9 @@ _pystat_fromstructstat(STRUCT_STAT *st)
|
|||
#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
|
||||
|
|
Loading…
Reference in New Issue