From: Neal Norwitz Date: Thu, 6 Apr 2006 08:07:25 +0000 (+0000) Subject: Handle ssize_t X-Git-Tag: v2.5a2~411 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffb0d90a6ee9dbf6d8b738c4ae1c5415a2f9a628;p=python Handle ssize_t --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 206d34a357..a8976b3ce7 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1037,7 +1037,7 @@ gc_get_count(PyObject *self, PyObject *noargs) static int referrersvisit(PyObject* obj, PyObject *objs) { - int i; + Py_ssize_t i; for (i = 0; i < PyTuple_GET_SIZE(objs); i++) if (PyTuple_GET_ITEM(objs, i) == obj) return 1; @@ -1097,7 +1097,7 @@ Return the list of objects that are directly referred to by objs."); static PyObject * gc_get_referents(PyObject *self, PyObject *args) { - int i; + Py_ssize_t i; PyObject *result = PyList_New(0); if (result == NULL)