[Python-checkins] r43694 - python/trunk/Modules/gcmodule.c

neal.norwitz python-checkins at python.org
Thu Apr 6 10:07:25 CEST 2006


Author: neal.norwitz
Date: Thu Apr  6 10:07:25 2006
New Revision: 43694

Modified:
   python/trunk/Modules/gcmodule.c
Log:
Handle ssize_t

Modified: python/trunk/Modules/gcmodule.c
==============================================================================
--- python/trunk/Modules/gcmodule.c	(original)
+++ python/trunk/Modules/gcmodule.c	Thu Apr  6 10:07:25 2006
@@ -1037,7 +1037,7 @@
 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 @@
 static PyObject *
 gc_get_referents(PyObject *self, PyObject *args)
 {
-	int i;
+	Py_ssize_t i;
 	PyObject *result = PyList_New(0);
 
 	if (result == NULL)


More information about the Python-checkins mailing list