]> granicus.if.org Git - python/commitdiff
Add missing cast in previous fix.
authorGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 03:36:05 +0000 (03:36 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 03:36:05 +0000 (03:36 +0000)
Objects/abstract.c

index 45d22069dbfef255606ee63ba48ddf86b5eb2e2c..c18d5e7f78ff7b8d30b0a5e182ef25f4d24132ea 100644 (file)
@@ -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);