commit | a103b96a80f049f68ccf2dd3d5d7858b26a27e94 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed May 16 14:37:54 2012 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed May 16 14:37:54 2012 +0200 |
tree | 273d34aaef693b979534b1bfc126ec4560b27a3b | |
parent | 5cdc6308b6ac134ab65f2001e37b0c067dadef7d [diff] [blame] |
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 58d373c..935b205 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c
@@ -307,7 +307,7 @@ 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; }