[pypy-svn] r73919 - pypy/branch/cpython-extension/pypy/module/cpyext/include
afa at codespeak.net
afa at codespeak.net
Tue Apr 20 19:19:04 CEST 2010
Author: afa
Date: Tue Apr 20 19:19:02 2010
New Revision: 73919
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/include/object.h
Log:
CPython also casts arguments to Py_INCREF
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/include/object.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/include/object.h (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/object.h Tue Apr 20 19:19:02 2010
@@ -37,10 +37,10 @@
PyObject_VAR_HEAD
} PyVarObject;
-#define Py_INCREF(ob) (Py_IncRef(ob))
-#define Py_DECREF(ob) (Py_DecRef(ob))
-#define Py_XINCREF(ob) (Py_IncRef(ob))
-#define Py_XDECREF(ob) (Py_DecRef(ob))
+#define Py_INCREF(ob) (Py_IncRef((PyObject *)ob))
+#define Py_DECREF(ob) (Py_DecRef((PyObject *)ob))
+#define Py_XINCREF(ob) (Py_IncRef((PyObject *)ob))
+#define Py_XDECREF(ob) (Py_DecRef((PyObject *)ob))
#define Py_CLEAR(op) \
do { \
More information about the Pypy-commit
mailing list