From b412734cb0c10b46c6d2b24144ecf26ccf4cf324 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 18 Apr 2002 04:47:10 +0000 Subject: [PATCH] Darn. Of course the warning that Tim killed on the trunk must also be killed in the branch. --- Objects/typeobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 922f23179fa9..848e0a6137cc 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -91,7 +91,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); -- 2.47.3