From: Guido van Rossum Date: Thu, 18 Apr 2002 04:47:10 +0000 (+0000) Subject: Darn. Of course the warning that Tim killed on the trunk must also be X-Git-Tag: v2.2.2b1~437 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b412734cb0c10b46c6d2b24144ecf26ccf4cf324;p=thirdparty%2FPython%2Fcpython.git Darn. Of course the warning that Tim killed on the trunk must also be killed in the branch. --- 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);