projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88d0a5
)
Use Py_ssize_t since we are working with list size below
author
Neal Norwitz
<nnorwitz@gmail.com>
Thu, 2 Mar 2006 07:54:28 +0000
(07:54 +0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Thu, 2 Mar 2006 07:54:28 +0000
(07:54 +0000)
Python/ceval.c
patch
|
blob
|
history
diff --git
a/Python/ceval.c
b/Python/ceval.c
index 4e3209ff81b96d88eca47ec4af31e71608addc27..5fda826e36812ad1081a3e0563ff50bdeeed12ec 100644
(file)
--- 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)) {