Kaydet (Commit) 1d529d1e authored tarafından Guido van Rossum's avatar Guido van Rossum

Add a cast to the call to _Py_Dealloc in the expanded version of

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.)
üst 7f400be2
......@@ -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: */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment