mirror of https://github.com/python/cpython
Merge r60673
This commit is contained in:
parent
0dbdab2557
commit
ad3f3321f6
|
@ -220,7 +220,7 @@ range_item(rangeobject *r, Py_ssize_t i)
|
|||
}
|
||||
|
||||
/* XXX(nnorwitz): optimize for short ints. */
|
||||
rem = PyLong_FromSsize_t(i % len);
|
||||
rem = PyLong_FromSsize_t(i);
|
||||
if (!rem)
|
||||
return NULL;
|
||||
incr = PyNumber_Multiply(rem, r->step);
|
||||
|
|
Loading…
Reference in New Issue