Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 37164:2b7ece78e293 legacy-trunk
Fix a ssize_t issue
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Thu, 23 Mar 2006 05:48:09 +0000 |
| parents | fc10ff322df1 |
| children | ab3efbca5c92 |
line wrap: on
line diff
--- a/Python/ceval.c Thu Mar 23 05:41:24 2006 +0000 +++ b/Python/ceval.c Thu Mar 23 05:48:09 2006 +0000 @@ -3935,7 +3935,7 @@ 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)
