mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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,
|
||||
PyLong_FromLongLong((PY_LONG_LONG)st->st_dev));
|
||||
#else
|
||||
PyStructSequence_SET_ITEM(v, 2, PyLong_FromLong((long)st->st_dev));
|
||||
PyStructSequence_SET_ITEM(v, 2,
|
||||
PyLong_FromUnsignedLong(st->st_dev));
|
||||
#endif
|
||||
PyStructSequence_SET_ITEM(v, 3, PyLong_FromLong((long)st->st_nlink));
|
||||
PyStructSequence_SET_ITEM(v, 4, PyLong_FromLong((long)st->st_uid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue