Commit e5b130bc authored by Guido van Rossum's avatar Guido van Rossum

Add missing cast in previous fix.

parent 03bc7d3c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment