Kaydet (Commit) ad3f3321 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Merge r60673

üst 0dbdab25
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment