Fix compiler warning.
This commit is contained in:
parent
bf02e3bb21
commit
de48d8406f
|
@ -2911,7 +2911,7 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls)
|
|||
PyObject *checker;
|
||||
|
||||
/* Quick test for an exact match */
|
||||
if (Py_TYPE(inst) == cls)
|
||||
if (Py_TYPE(inst) == (PyTypeObject *)cls)
|
||||
return 1;
|
||||
|
||||
PyErr_Fetch(&t, &v, &tb);
|
||||
|
|
Loading…
Reference in New Issue