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);