diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-21 08:53:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 08:53:25 +0200 |
commit | fff9a31a91283c39c363af219e595eab7d4da6f7 (patch) | |
tree | 0dfdec9e4e3e7caec6804bcc1fef1f2c19b9e532 /Objects/descrobject.c | |
parent | c61ac1642d19f54c7b755098230967ad2e603180 (diff) | |
download | cpython-git-fff9a31a91283c39c363af219e595eab7d4da6f7.tar.gz |
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 8677cdd754..1d11605a9b 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -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); |