mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix compiler warning.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user