mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-39573: Use Py_SET_SIZE() function (GH-18402)
Replace direct acccess to PyVarObject.ob_size with usage of the Py_SET_SIZE() function.
This commit is contained in:
parent
de6f38db48
commit
60ac6ed557
16 changed files with 95 additions and 86 deletions
|
@ -4436,7 +4436,7 @@ unpack_iterable(PyThreadState *tstate, PyObject *v,
|
|||
*--sp = PyList_GET_ITEM(l, ll - j);
|
||||
}
|
||||
/* Resize the list. */
|
||||
Py_SIZE(l) = ll - argcntafter;
|
||||
Py_SET_SIZE(l, ll - argcntafter);
|
||||
Py_DECREF(it);
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue