[pypy-svn] r73952 - pypy/branch/cpython-extension/pypy/module/cpyext/include
afa at codespeak.net
afa at codespeak.net
Thu Apr 22 00:07:59 CEST 2010
Author: afa
Date: Thu Apr 22 00:07:58 2010
New Revision: 73952
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/include/bufferobject.h
Log:
Oops, I broke compilation
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/include/bufferobject.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/include/bufferobject.h (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/bufferobject.h Thu Apr 22 00:07:58 2010
@@ -11,7 +11,7 @@
PyAPI_DATA(PyTypeObject) PyBuffer_Type;
-#define PyBuffer_Check(op) (Py_TYPE(op) == &PyBuffer_Type)
+#define PyBuffer_Check(op) (((PyObject*)(ob))->ob_type == &PyBuffer_Type)
#define Py_END_OF_BUFFER (-1)
More information about the Pypy-commit
mailing list