From: Neal Norwitz Date: Thu, 2 Mar 2006 07:54:28 +0000 (+0000) Subject: Use Py_ssize_t since we are working with list size below X-Git-Tag: v2.5a0~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=814e938d0845d71727e1ad2c1113657bfc9f8c77;p=python Use Py_ssize_t since we are working with list size below --- diff --git a/Python/ceval.c b/Python/ceval.c index 4e3209ff81..5fda826e36 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1174,7 +1174,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throw) v = TOP(); if (PyList_CheckExact(v) && PyInt_CheckExact(w)) { /* INLINE: list[int] */ - long i = PyInt_AsLong(w); + Py_ssize_t i = PyInt_AsSsize_t(w); if (i < 0) i += PyList_GET_SIZE(v); if (i >= 0 && i < PyList_GET_SIZE(v)) {