Index: object.h =================================================================== RCS file: /cvsroot/python/python/dist/src/Include/object.h,v retrieving revision 2.128 diff -u -r2.128 object.h --- object.h 22 Jul 2004 01:46:43 -0000 2.128 +++ object.h 1 Sep 2004 05:05:05 -0000 @@ -620,13 +620,13 @@ else \ _Py_Dealloc((PyObject *)(op)) -#define Py_CLEAR(op) \ - do { \ - if (op) { \ - PyObject *tmp = (op); \ - (op) = NULL; \ - Py_DECREF(tmp); \ - } \ +#define Py_CLEAR(op) \ + do { \ + if (op) { \ + PyObject *tmp = (PyObject *)(op); \ + (op) = NULL; \ + Py_DECREF(tmp); \ + } \ } while (0) /* Macros to use in case the object pointer may be NULL: */