diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-02 07:54:28 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-02 07:54:28 (GMT) |
commit | 814e938d0845d71727e1ad2c1113657bfc9f8c77 (patch) | |
tree | 1088005a2fa8740acd6e8cc2cabac19ef2ddbcf0 /Python | |
parent | e88d0a5d8acc125ddb4a82c843bf5dd3b1525d4a (diff) | |
download | cpython-814e938d0845d71727e1ad2c1113657bfc9f8c77.zip cpython-814e938d0845d71727e1ad2c1113657bfc9f8c77.tar.gz cpython-814e938d0845d71727e1ad2c1113657bfc9f8c77.tar.bz2 |
Use Py_ssize_t since we are working with list size below
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |