mirror of
https://github.com/python/cpython.git
synced 2026-04-13 15:20:52 +00:00
gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)
This commit is contained in:
parent
44855458a4
commit
39aa415296
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue