commit | 2b858971899ae0572f0610e4a8d59241471c6771 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Apr 18 04:12:28 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Apr 18 04:12:28 2002 +0000 |
tree | c2a8b751d5bc6f43cd0fb2bb36584200137ee962 | |
parent | 91bae441f63167716066f6500fd0e1f775c37c08 [diff] [blame] |
type_get_doc(): Squash compiler wng about incompatible ptr types.
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 @@ 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);