summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-15 05:19:32 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-15 05:19:32 (GMT)
commita15f614a0cc7bc76bac0fa1a6e050967ca1bacd7 (patch)
tree4828ba2529f3f8ef6c0d688dfb35ffc6f4b88283 /Objects
parent5ee8cb1201e2c926f8c9c8cd6a79c054746f57b6 (diff)
parent982ef4e0bc2b1def1117238fb5292cca5dfa2891 (diff)
downloadcpython-a15f614a0cc7bc76bac0fa1a6e050967ca1bacd7.zip
cpython-a15f614a0cc7bc76bac0fa1a6e050967ca1bacd7.tar.gz
cpython-a15f614a0cc7bc76bac0fa1a6e050967ca1bacd7.tar.bz2
#11845: Merge with 3.2.
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 cff2ce4..58d373c 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -472,7 +472,7 @@ compute_slice_indices(rangeobject *r, PySliceObject *slice,
if (tmp_stop == NULL) goto Fail;
} else {
tmp_stop = r->length;
- Py_INCREF(tmp_start);
+ Py_INCREF(tmp_stop);
}
}
}