diff options
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r-- | Objects/typeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |