Skip to content

Commit

Permalink
Update Objects/listobject.c
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Dec 27, 2022
1 parent 7c1a835 commit 23eb3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ list_pop_impl(PyListObject *self, Py_ssize_t index)
PyObject **items = self->ob_item;
v = items[index];
const Py_ssize_t size_after_pop = Py_SIZE(self) - 1;
if(size_after_pop == 0) {
if (size_after_pop == 0) {
Py_INCREF(v);
status = _list_clear(self);
}
Expand Down

0 comments on commit 23eb3aa

Please sign in to comment.