mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
This commit is contained in:
parent
34d204bc85
commit
982ef4e0bc
3 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue