mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
This commit is contained in:
parent
e0805cf10e
commit
57a01d3a0e
20 changed files with 52 additions and 42 deletions
|
@ -631,7 +631,7 @@ tee_next(teeobject *to)
|
|||
link = teedataobject_jumplink(to->dataobj);
|
||||
if (link == NULL)
|
||||
return NULL;
|
||||
Py_XSETREF(to->dataobj, (teedataobject *)link);
|
||||
Py_SETREF(to->dataobj, (teedataobject *)link);
|
||||
to->index = 0;
|
||||
}
|
||||
value = teedataobject_getitem(to->dataobj, to->index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue