Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63294:ba2d0170f09e
Date: 2013-04-12 13:47 -0700
http://bitbucket.org/pypy/pypy/changeset/ba2d0170f09e/

Log:    quiet a compiler warning

diff --git a/pypy/module/cpyext/include/pyerrors.h 
b/pypy/module/cpyext/include/pyerrors.h
--- a/pypy/module/cpyext/include/pyerrors.h
+++ b/pypy/module/cpyext/include/pyerrors.h
@@ -12,7 +12,7 @@
       PyObject_IsSubclass((x), PyExc_BaseException)))
 
 #define PyExceptionInstance_Check(x)                                    \
-    (PyObject_IsSubclass((x)->ob_type, PyExc_BaseException))
+    (PyObject_IsSubclass((PyObject *)Py_TYPE(x), PyExc_BaseException))
 
 PyObject *PyErr_NewException(const char *name, PyObject *base, PyObject *dict);
 PyObject *PyErr_NewExceptionWithDoc(const char *name, const char *doc, 
PyObject *base, PyObject *dict);
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to