[Python-checkins] python/dist/src/Modules gcmodule.c,2.42,2.43
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Thu, 06 Jun 2002 16:23:57 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv22164
Modified Files:
gcmodule.c
Log Message:
Remove casts to PyObject * when declaration is for PyObject *
Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.42
retrieving revision 2.43
diff -C2 -d -r2.42 -r2.43
*** gcmodule.c 21 May 2002 15:53:24 -0000 2.42
--- gcmodule.c 6 Jun 2002 23:23:55 -0000 2.43
***************
*** 356,360 ****
if ((clear = op->ob_type->tp_clear) != NULL) {
Py_INCREF(op);
! clear((PyObject *)op);
Py_DECREF(op);
}
--- 356,360 ----
if ((clear = op->ob_type->tp_clear) != NULL) {
Py_INCREF(op);
! clear(op);
Py_DECREF(op);
}
***************
*** 880,884 ****
PyGC_Head *g = PyObject_MALLOC(sizeof(PyGC_Head) + basicsize);
if (g == NULL)
! return (PyObject *)PyErr_NoMemory();
g->gc.gc_next = NULL;
generations[0].count++; /* number of allocated GC objects */
--- 880,884 ----
PyGC_Head *g = PyObject_MALLOC(sizeof(PyGC_Head) + basicsize);
if (g == NULL)
! return PyErr_NoMemory();
g->gc.gc_next = NULL;
generations[0].count++; /* number of allocated GC objects */
***************
*** 896,900 ****
op = PyObject_MALLOC(basicsize);
if (op == NULL)
! return (PyObject *)PyErr_NoMemory();
#endif
--- 896,900 ----
op = PyObject_MALLOC(basicsize);
if (op == NULL)
! return PyErr_NoMemory();
#endif