From: Guido van Rossum Date: Wed, 12 Feb 2003 03:36:05 +0000 (+0000) Subject: Add missing cast in previous fix. X-Git-Tag: v2.3c1~1901 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5b130bcdb491b7d4af7cd4c9cf82ebf6ba5fc63;p=python Add missing cast in previous fix. --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 45d22069db..c18d5e7f78 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);