From 2b858971899ae0572f0610e4a8d59241471c6771 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 18 Apr 2002 04:12:28 +0000 Subject: type_get_doc(): Squash compiler wng about incompatible ptr types. --- Objects/typeobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index f647d57..9a20fa4 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); -- cgit v0.12