diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2014-03-04 23:22:15 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2014-03-04 23:22:15 (GMT) |
commit | 25ea45db81540b8c589c65edf2564c04461b1f34 (patch) | |
tree | e749a6c7ccc7ecafe5add84477796f87dffa9589 /Objects/rangeobject.c | |
parent | d74ac82df9cda264c120379a41e7add5d64b9d01 (diff) | |
parent | 4ca688edeb07de955e1ef67c11f0e327f12ffa6e (diff) | |
download | cpython-25ea45db81540b8c589c65edf2564c04461b1f34.zip cpython-25ea45db81540b8c589c65edf2564c04461b1f34.tar.gz cpython-25ea45db81540b8c589c65edf2564c04461b1f34.tar.bz2 |
Merge with 3.3
Diffstat (limited to 'Objects/rangeobject.c')
-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 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; } |