summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-15 05:15:40 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-15 05:15:40 (GMT)
commit982ef4e0bc2b1def1117238fb5292cca5dfa2891 (patch)
treea447bed2a4cb4b074e04cf3d77a8db7993219278 /Objects
parent34d204bc85074a96754e4cd1f23f1c148d0d9aaa (diff)
downloadcpython-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.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);
}
}
}