mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
(untested, because of Windows build issues under 3.x)
This commit is contained in:
commit
b7d033db78
3 changed files with 6 additions and 3 deletions
|
@ -308,7 +308,7 @@ compute_range_item(rangeobject *r, PyObject *arg)
|
|||
static PyObject *
|
||||
range_item(rangeobject *r, Py_ssize_t i)
|
||||
{
|
||||
PyObject *res, *arg = PyLong_FromLong(i);
|
||||
PyObject *res, *arg = PyLong_FromSsize_t(i);
|
||||
if (!arg) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue