From 814e938d0845d71727e1ad2c1113657bfc9f8c77 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 2 Mar 2006 07:54:28 +0000 Subject: Use Py_ssize_t since we are working with list size below --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 4e3209f..5fda826 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)) { -- cgit v0.12