summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-12 03:36:05 (GMT)
committerGuido van Rossum <guido@python.org>2003-02-12 03:36:05 (GMT)
commite5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63 (patch)
treea5c1ebdde2b31ff440183a71b8d5dd010c7a77f8 /Objects/abstract.c
parent03bc7d3c4d22146b2e28c39e6c2e239137318f0a (diff)
downloadcpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.zip
cpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.tar.gz
cpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.tar.bz2
Add missing cast in previous fix.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 45d2206..c18d5e7 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2059,7 +2059,8 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls)
PyErr_Clear();
}
else {
- if (c != inst->ob_type && PyType_Check(c))
+ if (c != (PyObject *)(inst->ob_type) &&
+ PyType_Check(c))
retval = PyType_IsSubtype(
(PyTypeObject *)c,
(PyTypeObject *)cls);