mirror of
https://github.com/python/cpython
synced 2026-09-29 08:20:29 +03:00
type_get_doc(): Squash compiler wng about incompatible ptr types.
This commit is contained in:
parent
91bae441f6
commit
2b85897189
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue