diff options
author | Guido van Rossum <guido@python.org> | 1997-08-05 02:30:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-05 02:30:44 (GMT) |
commit | 1d529d1ecdb3ec7e8fce97f77fc39ed406b6933f (patch) | |
tree | 06ce4cbf13b0e85cc14408aff1371d8bd97e7155 /Include | |
parent | 7f400be210e067e465d13a37fd3f502928621f0f (diff) | |
download | cpython-1d529d1ecdb3ec7e8fce97f77fc39ed406b6933f.zip cpython-1d529d1ecdb3ec7e8fce97f77fc39ed406b6933f.tar.gz cpython-1d529d1ecdb3ec7e8fce97f77fc39ed406b6933f.tar.bz2 |
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.)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h index 45e0f02..65e25bc 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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: */ |