Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.

This commit is contained in:
Antoine Pitrou 2012-05-16 14:37:54 +02:00
parent 5cdc6308b6
commit a103b96a80
3 changed files with 6 additions and 2 deletions

View file

@ -307,7 +307,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;
}