mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Set st_dev on Windows as unsigned long to match its DWORD type, related to the change to fix #11939.
This commit is contained in:
parent
950fab07aa
commit
e3d0b65118
1 changed files with 2 additions and 1 deletions
|
|
@ -1955,7 +1955,8 @@ _pystat_fromstructstat(STRUCT_STAT *st)
|
||||||
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
|
||||||
PyStructSequence_SET_ITEM(v, 2, PyLong_FromLong((long)st->st_dev));
|
PyStructSequence_SET_ITEM(v, 2,
|
||||||
|
PyLong_FromUnsignedLong(st->st_dev));
|
||||||
#endif
|
#endif
|
||||||
PyStructSequence_SET_ITEM(v, 3, PyLong_FromLong((long)st->st_nlink));
|
PyStructSequence_SET_ITEM(v, 3, PyLong_FromLong((long)st->st_nlink));
|
||||||
PyStructSequence_SET_ITEM(v, 4, PyLong_FromLong((long)st->st_uid));
|
PyStructSequence_SET_ITEM(v, 4, PyLong_FromLong((long)st->st_uid));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue