diff options
| author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-06 23:23:55 +0000 |
|---|---|---|
| committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-06 23:23:55 +0000 |
| commit | 8a13518d25da3ce174d2f4b17f37dbd3cda8299c (patch) | |
| tree | c3596d3af055ed1893254bc7f45def24ff9a6863 /Modules | |
| parent | bdbd84fdac0a28e8d2cbaff07cd64eef9a26c068 (diff) | |
| download | cpython-git-8a13518d25da3ce174d2f4b17f37dbd3cda8299c.tar.gz | |
Remove casts to PyObject * when declaration is for PyObject *
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/gcmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index b334f9db6b..fd8a076d4e 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -355,7 +355,7 @@ delete_garbage(PyGC_Head *unreachable, PyGC_Head *old) else { if ((clear = op->ob_type->tp_clear) != NULL) { Py_INCREF(op); - clear((PyObject *)op); + clear(op); Py_DECREF(op); } } @@ -879,7 +879,7 @@ _PyObject_GC_Malloc(size_t basicsize) #ifdef WITH_CYCLE_GC PyGC_Head *g = PyObject_MALLOC(sizeof(PyGC_Head) + basicsize); if (g == NULL) - return (PyObject *)PyErr_NoMemory(); + return PyErr_NoMemory(); g->gc.gc_next = NULL; generations[0].count++; /* number of allocated GC objects */ if (generations[0].count > generations[0].threshold && @@ -895,7 +895,7 @@ _PyObject_GC_Malloc(size_t basicsize) #else op = PyObject_MALLOC(basicsize); if (op == NULL) - return (PyObject *)PyErr_NoMemory(); + return PyErr_NoMemory(); #endif return op; |
