]> granicus.if.org Git - python/commitdiff
type_get_doc(): Squash compiler wng about incompatible ptr types.
authorTim Peters <tim.peters@gmail.com>
Thu, 18 Apr 2002 04:12:28 +0000 (04:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 18 Apr 2002 04:12:28 +0000 (04:12 +0000)
Objects/typeobject.c

index f647d57b6e717e6d87d3e733f73ebb83ec93dc9f..9a20fa4e049c590628ad11cd3804f2aae0711d72 100644 (file)
@@ -90,7 +90,8 @@ type_get_doc(PyTypeObject *type, void *context)
                Py_INCREF(result);
        }
        else if (result->ob_type->tp_descr_get) {
-               result = result->ob_type->tp_descr_get(result, NULL, type);
+               result = result->ob_type->tp_descr_get(result, NULL,
+                                                      (PyObject *)type);
        }
        else {
                Py_INCREF(result);