Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make variable const
  • Loading branch information
eendebakpt committed Dec 26, 2022
commit 7c1a8355d7ca723039d05546d171a2359644ce1c
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) {
Comment thread
corona10 marked this conversation as resolved.
Outdated
Py_INCREF(v);
status = _list_clear(self);
Expand Down