summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2014-03-04 23:22:15 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2014-03-04 23:22:15 (GMT)
commit25ea45db81540b8c589c65edf2564c04461b1f34 (patch)
treee749a6c7ccc7ecafe5add84477796f87dffa9589 /Objects
parentd74ac82df9cda264c120379a41e7add5d64b9d01 (diff)
parent4ca688edeb07de955e1ef67c11f0e327f12ffa6e (diff)
downloadcpython-25ea45db81540b8c589c65edf2564c04461b1f34.zip
cpython-25ea45db81540b8c589c65edf2564c04461b1f34.tar.gz
cpython-25ea45db81540b8c589c65edf2564c04461b1f34.tar.bz2
Merge with 3.3
Diffstat (limited to 'Objects')
-rw-r--r--Objects/rangeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index a4d9fb3..e82ebf44 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -807,7 +807,7 @@ rangeiter_setstate(rangeiterobject *r, PyObject *state)
long index = PyLong_AsLong(state);
if (index == -1 && PyErr_Occurred())
return NULL;
- if (index < 0 || index >= r->len) {
+ if (index < 0 || index > r->len) {
PyErr_SetString(PyExc_ValueError, "index out of range");
return NULL;
}