diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-04-05 13:50:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 13:50:24 (GMT) |
commit | b1dc1aacf8b0f319024a1a3ce91d395956537c11 (patch) | |
tree | d37c2b41f5fd1af45f9e27d66114c7f6b133fe21 /Modules/_cursesmodule.c | |
parent | c8e5eb904e12010d2302364e1037c24a30f5e241 (diff) | |
download | cpython-b1dc1aacf8b0f319024a1a3ce91d395956537c11.zip cpython-b1dc1aacf8b0f319024a1a3ce91d395956537c11.tar.gz cpython-b1dc1aacf8b0f319024a1a3ce91d395956537c11.tar.bz2 |
bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 3df9f50..d221cf1 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -1343,7 +1343,7 @@ _curses_window_echochar_impl(PyCursesWindowObject *self, PyObject *ch, #ifdef NCURSES_MOUSE_VERSION /*[clinic input] -_curses.window.enclose -> long +_curses.window.enclose y: int Y-coordinate. @@ -1354,11 +1354,11 @@ _curses.window.enclose -> long Return True if the screen-relative coordinates are enclosed by the window. [clinic start generated code]*/ -static long +static PyObject * _curses_window_enclose_impl(PyCursesWindowObject *self, int y, int x) -/*[clinic end generated code: output=5251c961cbe3df63 input=dfe1d9d4d05d8642]*/ +/*[clinic end generated code: output=8679beef50502648 input=4fd3355d723f7bc9]*/ { - return wenclose(self->win, y, x); + return PyBool_FromLong(wenclose(self->win, y, x)); } #endif |