Skip to content

Commit 5e38c09

Browse files
committed
Use n variable consistently throughout
1 parent 646630e commit 5e38c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/itertoolsmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ batched_next(batchedobject *bo)
166166
Py_DECREF(result);
167167
return NULL;
168168
}
169-
if (i < bo->batch_size) {
169+
if (i < n) {
170170
PyObject *short_list = PyList_GetSlice(result, 0, i);
171171
Py_SETREF(result, short_list);
172172
}

0 commit comments

Comments
 (0)