Merge r60673

This commit is contained in:
Raymond Hettinger 2008-02-09 04:13:49 +00:00
parent 0dbdab2557
commit ad3f3321f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);