]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Darn. Of course the warning that Tim killed on the trunk must also be
authorGuido van Rossum <guido@python.org>
Thu, 18 Apr 2002 04:47:10 +0000 (04:47 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Apr 2002 04:47:10 +0000 (04:47 +0000)
killed in the branch.

Objects/typeobject.c

index 922f23179fa9073efb8226fb79924be6f3d90d41..848e0a6137cc5982b30fffca9ac05fc3aae0ab67 100644 (file)
@@ -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);