Skip to content

Commit

Permalink
make variable const
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Dec 26, 2022
1 parent 7c6c9fa commit 7c1a835
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 @@ -1025,7 +1025,7 @@ list_pop_impl(PyListObject *self, Py_ssize_t index)

PyObject **items = self->ob_item;
v = items[index];
Py_ssize_t size_after_pop = Py_SIZE(self) - 1;
const Py_ssize_t size_after_pop = Py_SIZE(self) - 1;
if(size_after_pop == 0) {
Py_INCREF(v);
status = _list_clear(self);
Expand Down

0 comments on commit 7c1a835

Please sign in to comment.