mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
gh-98724: Fix warnings on Py_SETREF() usage (#99781)
Cast argument to the expected type.
This commit is contained in:
parent
ae234fbc5c
commit
5556d3e02c
3 changed files with 3 additions and 3 deletions
|
@ -9593,7 +9593,7 @@ super_init_impl(PyObject *self, PyTypeObject *type, PyObject *obj) {
|
|||
return -1;
|
||||
Py_INCREF(obj);
|
||||
}
|
||||
Py_XSETREF(su->type, Py_NewRef(type));
|
||||
Py_XSETREF(su->type, (PyTypeObject*)Py_NewRef(type));
|
||||
Py_XSETREF(su->obj, obj);
|
||||
Py_XSETREF(su->obj_type, obj_type);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue