mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
This commit is contained in:
parent
c61ac1642d
commit
fff9a31a91
13 changed files with 35 additions and 32 deletions
|
@ -1385,7 +1385,7 @@ property_descr_get(PyObject *self, PyObject *obj, PyObject *type)
|
|||
PyTuple_SET_ITEM(args, 0, obj);
|
||||
ret = PyObject_Call(gs->prop_get, args, NULL);
|
||||
if (cached_args == NULL && Py_REFCNT(args) == 1) {
|
||||
assert(Py_SIZE(args) == 1);
|
||||
assert(PyTuple_GET_SIZE(args) == 1);
|
||||
assert(PyTuple_GET_ITEM(args, 0) == obj);
|
||||
cached_args = args;
|
||||
Py_DECREF(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue