Kaydet (Commit) ffb0d90a authored tarafından Neal Norwitz's avatar Neal Norwitz

Handle ssize_t

üst 915ae41b
...@@ -1037,7 +1037,7 @@ gc_get_count(PyObject *self, PyObject *noargs) ...@@ -1037,7 +1037,7 @@ gc_get_count(PyObject *self, PyObject *noargs)
static int static int
referrersvisit(PyObject* obj, PyObject *objs) referrersvisit(PyObject* obj, PyObject *objs)
{ {
int i; Py_ssize_t i;
for (i = 0; i < PyTuple_GET_SIZE(objs); i++) for (i = 0; i < PyTuple_GET_SIZE(objs); i++)
if (PyTuple_GET_ITEM(objs, i) == obj) if (PyTuple_GET_ITEM(objs, i) == obj)
return 1; return 1;
...@@ -1097,7 +1097,7 @@ Return the list of objects that are directly referred to by objs."); ...@@ -1097,7 +1097,7 @@ Return the list of objects that are directly referred to by objs.");
static PyObject * static PyObject *
gc_get_referents(PyObject *self, PyObject *args) gc_get_referents(PyObject *self, PyObject *args)
{ {
int i; Py_ssize_t i;
PyObject *result = PyList_New(0); PyObject *result = PyList_New(0);
if (result == NULL) if (result == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment