Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7c1a835

Browse files
committedDec 26, 2022
make variable const
1 parent 7c6c9fa commit 7c1a835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Objects/listobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ list_pop_impl(PyListObject *self, Py_ssize_t index)
10251025

10261026
PyObject **items = self->ob_item;
10271027
v = items[index];
1028-
Py_ssize_t size_after_pop = Py_SIZE(self) - 1;
1028+
const Py_ssize_t size_after_pop = Py_SIZE(self) - 1;
10291029
if(size_after_pop == 0) {
10301030
Py_INCREF(v);
10311031
status = _list_clear(self);

0 commit comments

Comments
 (0)
Please sign in to comment.