diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
commit | ec39756960def5fdd8cb0ae191429f2f8e229f55 (patch) | |
tree | adb8bb87ed393db602face59929660b968f452e5 /Objects/listobject.c | |
parent | 72783056983f216104087b6c49d85ea273bf67c4 (diff) | |
parent | 48842714b948fa239392ddd7e207151d5fcb8bc7 (diff) | |
download | cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.zip cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.gz cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.bz2 |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 81b40ae..7c02be7 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -229,7 +229,7 @@ PyList_SetItem(PyObject *op, Py_ssize_t i, return -1; } p = ((PyListObject *)op) -> ob_item + i; - Py_SETREF(*p, newitem); + Py_XSETREF(*p, newitem); return 0; } @@ -735,7 +735,7 @@ list_ass_item(PyListObject *a, Py_ssize_t i, PyObject *v) if (v == NULL) return list_ass_slice(a, i, i+1, v); Py_INCREF(v); - Py_SETREF(a->ob_item[i], v); + Py_XSETREF(a->ob_item[i], v); return 0; } |