commit | 982ef4e0bc2b1def1117238fb5292cca5dfa2891 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Fri Apr 15 08:15:40 2011 +0300 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Fri Apr 15 08:15:40 2011 +0300 |
tree | a447bed2a4cb4b074e04cf3d77a8db7993219278 | |
parent | 34d204bc85074a96754e4cd1f23f1c148d0d9aaa [diff] [blame] |
#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
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 @@ if (tmp_stop == NULL) goto Fail; } else { tmp_stop = r->length; - Py_INCREF(tmp_start); + Py_INCREF(tmp_stop); } } }