Kaydet (Commit) 2b858971 authored tarafından Tim Peters's avatar Tim Peters

type_get_doc(): Squash compiler wng about incompatible ptr types.

üst 91bae441
...@@ -90,7 +90,8 @@ type_get_doc(PyTypeObject *type, void *context) ...@@ -90,7 +90,8 @@ type_get_doc(PyTypeObject *type, void *context)
Py_INCREF(result); Py_INCREF(result);
} }
else if (result->ob_type->tp_descr_get) { 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 { else {
Py_INCREF(result); Py_INCREF(result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment