summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-23 05:48:09 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-23 05:48:09 (GMT)
commit90768424f8c48aa0d50642cb423b356adbf2293d (patch)
tree8f8e2e3e432161eac3143a477585701176c00f01 /Python/ceval.c
parent8af92d1f6ca8a99b8bcbd91d73a7d400d35facb3 (diff)
downloadcpython-90768424f8c48aa0d50642cb423b356adbf2293d.zip
cpython-90768424f8c48aa0d50642cb423b356adbf2293d.tar.gz
cpython-90768424f8c48aa0d50642cb423b356adbf2293d.tar.bz2
Fix a ssize_t issue
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index de2b35b..99dfc2d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3935,7 +3935,7 @@ _PyEval_SliceIndex(PyObject *v, Py_ssize_t *pi)
if (v != NULL) {
Py_ssize_t x;
if (PyInt_Check(v)) {
- x = PyInt_AsLong(v);
+ x = PyInt_AsSsize_t(v);
}
else if (v->ob_type->tp_as_number &&
PyType_HasFeature(v->ob_type, Py_TPFLAGS_HAVE_INDEX)