mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user