]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compiler warning.
authorRaymond Hettinger <python@rcn.com>
Wed, 19 Mar 2008 03:56:59 +0000 (03:56 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 19 Mar 2008 03:56:59 +0000 (03:56 +0000)
Objects/abstract.c

index 3315b0eb632d9c2bd7982d7dd2c1499c7e2d5ee6..0ec6dee2cda1116c07281d2cbdd0b5ccb17a60e3 100644 (file)
@@ -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);