diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-15 05:15:40 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-15 05:15:40 (GMT) |
commit | 982ef4e0bc2b1def1117238fb5292cca5dfa2891 (patch) | |
tree | a447bed2a4cb4b074e04cf3d77a8db7993219278 /Objects | |
parent | 34d204bc85074a96754e4cd1f23f1c148d0d9aaa (diff) | |
download | cpython-982ef4e0bc2b1def1117238fb5292cca5dfa2891.zip cpython-982ef4e0bc2b1def1117238fb5292cca5dfa2891.tar.gz cpython-982ef4e0bc2b1def1117238fb5292cca5dfa2891.tar.bz2 |
#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
Diffstat (limited to 'Objects')
-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 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); } } } |