]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a cast to the call to _Py_Dealloc in the expanded version of
authorGuido van Rossum <guido@python.org>
Tue, 5 Aug 1997 02:30:44 +0000 (02:30 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 5 Aug 1997 02:30:44 +0000 (02:30 +0000)
Py_DECREF, to reduce the warnings when compiling with reference count
debugging on.  (There are still warnings for each call to
_Py_NewReference -- too bad.)

Include/object.h

index 45e0f02d4f630a9f62f2a0bc3e48d472d52b011a..65e25bc7a5d8adcb06cb281ab77fb3abff3f924f 100644 (file)
@@ -349,7 +349,7 @@ extern long _Py_RefTotal;
        if (--_Py_RefTotal, --(op)->ob_refcnt != 0) \
                ; \
        else \
-               _Py_Dealloc(op)
+               _Py_Dealloc((PyObject *)(op))
 #else /* !Py_REF_DEBUG */
 
 #ifdef COUNT_ALLOCS
@@ -363,7 +363,7 @@ extern long _Py_RefTotal;
        if (--(op)->ob_refcnt != 0) \
                ; \
        else \
-               _Py_Dealloc(op)
+               _Py_Dealloc((PyObject *)(op))
 #endif /* !Py_REF_DEBUG */
 
 /* Macros to use in case the object pointer may be NULL: */