summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-18 04:12:28 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-18 04:12:28 (GMT)
commit2b858971899ae0572f0610e4a8d59241471c6771 (patch)
treec2a8b751d5bc6f43cd0fb2bb36584200137ee962
parent91bae441f63167716066f6500fd0e1f775c37c08 (diff)
downloadcpython-2b858971899ae0572f0610e4a8d59241471c6771.zip
cpython-2b858971899ae0572f0610e4a8d59241471c6771.tar.gz
cpython-2b858971899ae0572f0610e4a8d59241471c6771.tar.bz2
type_get_doc(): Squash compiler wng about incompatible ptr types.
-rw-r--r--Objects/typeobject.c3
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);