mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Fix compiler warning.
This commit is contained in:
parent
bf02e3bb21
commit
de48d8406f
1 changed files with 1 additions and 1 deletions
|
@ -2911,7 +2911,7 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls)
|
||||||
PyObject *checker;
|
PyObject *checker;
|
||||||
|
|
||||||
/* Quick test for an exact match */
|
/* Quick test for an exact match */
|
||||||
if (Py_TYPE(inst) == cls)
|
if (Py_TYPE(inst) == (PyTypeObject *)cls)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
PyErr_Fetch(&t, &v, &tb);
|
PyErr_Fetch(&t, &v, &tb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue