diff options
author | Guido van Rossum <guido@python.org> | 2003-02-12 03:36:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-12 03:36:05 (GMT) |
commit | e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63 (patch) | |
tree | a5c1ebdde2b31ff440183a71b8d5dd010c7a77f8 /Objects | |
parent | 03bc7d3c4d22146b2e28c39e6c2e239137318f0a (diff) | |
download | cpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.zip cpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.tar.gz cpython-e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63.tar.bz2 |
Add missing cast in previous fix.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/abstract.c | 3 |
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); |