summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-25 23:30:37 (GMT)
committerGitHub <noreply@github.com>2022-11-25 23:30:37 (GMT)
commit5556d3e02ca841b82b1eb42cc3974e0a3bbffaac (patch)
tree6130a8120ec5a36fd739d38047a4372f9ab30925 /Modules
parentae234fbc5ce045066448f2f0cda2f1c3c7ddebea (diff)
downloadcpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.zip
cpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.tar.gz
cpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.tar.bz2
gh-98724: Fix warnings on Py_SETREF() usage (#99781)
Cast argument to the expected type.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_curses_panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c
index cd408d6..2144345 100644
--- a/Modules/_curses_panel.c
+++ b/Modules/_curses_panel.c
@@ -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;
}