mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -424,7 +424,7 @@ _curses_panel_panel_replace_impl(PyCursesPanelObject *self,
|
|||
PyErr_SetString(state->PyCursesError, "replace_panel() returned ERR");
|
||||
return NULL;
|
||||
}
|
||||
Py_SETREF(po->wo, Py_NewRef(win));
|
||||
Py_SETREF(po->wo, (PyCursesWindowObject*)Py_NewRef(win));
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue