summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-09 04:13:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-09 04:13:49 (GMT)
commitad3f3321f6067b67f7b6d3fa1eb72abc335a02ed (patch)
tree0913976c11ac0d6e246c9f486aa9e28e6a456928 /Objects/rangeobject.c
parent0dbdab2557d7e1f83929981a12d7d2619a2a3804 (diff)
downloadcpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.zip
cpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.tar.gz
cpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.tar.bz2
Merge r60673
Diffstat (limited to 'Objects/rangeobject.c')
-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);