#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.

This commit is contained in:
Ezio Melotti 2011-04-15 08:15:40 +03:00
parent 34d204bc85
commit 982ef4e0bc
3 changed files with 13 additions and 1 deletions

View file

@ -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);
}
}
}