From: Tim Peters Date: Thu, 18 Apr 2002 04:12:28 +0000 (+0000) Subject: type_get_doc(): Squash compiler wng about incompatible ptr types. X-Git-Tag: v2.3c1~5896 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b858971899ae0572f0610e4a8d59241471c6771;p=python type_get_doc(): Squash compiler wng about incompatible ptr types. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index f647d57b6e..9a20fa4e04 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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);