gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)

This commit is contained in:
Victor Stinner
2026-03-09 14:53:52 +01:00
committed by GitHub
parent 44855458a4
commit 39aa415296
+2
View File
@@ -1132,7 +1132,9 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1,
else
#endif
{
#ifdef HAVE_NCURSESW
assert(wstr == NULL);
#endif
const char *str = PyBytes_AS_STRING(bytesobj);
if (use_xy) {
rtn = mvwaddstr(self->win,y,x,str);