diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-09 04:13:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-09 04:13:49 (GMT) |
commit | ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed (patch) | |
tree | 0913976c11ac0d6e246c9f486aa9e28e6a456928 | |
parent | 0dbdab2557d7e1f83929981a12d7d2619a2a3804 (diff) | |
download | cpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.zip cpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.tar.gz cpython-ad3f3321f6067b67f7b6d3fa1eb72abc335a02ed.tar.bz2 |
Merge r60673
-rw-r--r-- | Objects/rangeobject.c | 2 |
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); |