We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7eff1 commit a679b50Copy full SHA for a679b50
Objects/tupleobject.c
@@ -159,8 +159,8 @@ _PyTuple_MaybeUntrack(PyObject *op)
159
static bool
160
tuple_need_tracking(PyTupleObject *t)
161
{
162
- Py_ssize_t i = 0, n = Py_SIZE(t);
163
- for (; i < n; i++) {
+ Py_ssize_t n = PyTuple_GET_SIZE(t);
+ for (Py_ssize_t i = 0; i < n; i++) {
164
PyObject *elt = PyTuple_GET_ITEM(t, i);
165
/* Tuple with NULL elements aren't
166
fully constructed, we should track them. */
0 commit comments