mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
3331fd264d
commit
94a3d2a632
3 changed files with 32 additions and 16 deletions
|
|
@ -813,7 +813,7 @@ rangeiter_reduce(rangeiterobject *r, PyObject *Py_UNUSED(ignored))
|
|||
if (range == NULL)
|
||||
goto err;
|
||||
/* return the result */
|
||||
return Py_BuildValue("N(N)i", _PyEval_GetBuiltinId(&PyId_iter),
|
||||
return Py_BuildValue("N(N)l", _PyEval_GetBuiltinId(&PyId_iter),
|
||||
range, r->index);
|
||||
err:
|
||||
Py_XDECREF(start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue