summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/rangeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index dfd3cac..5ea5d6f 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -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);