mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add missing cast in previous fix.
This commit is contained in:
parent
03bc7d3c4d
commit
e5b130bcdb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue