From 788a327c9859470c811f6cba7748db26ebce7088 Mon Sep 17 00:00:00 2001 From: igo95862 Date: Tue, 1 Dec 2020 17:56:28 +0300 Subject: [PATCH] python: Fixed the error check on input using wrong c type --- python/notcurses/_notcurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/notcurses/_notcurses.c b/python/notcurses/_notcurses.c index 3b2c4b93e..3f3576c68 100644 --- a/python/notcurses/_notcurses.c +++ b/python/notcurses/_notcurses.c @@ -590,7 +590,7 @@ _notcurses_context_get_input_blocking(PyObject *Py_UNUSED(self), PyObject *args) char32_t code_point = notcurses_getc_blocking(notcurses_context_ref->notcurses_context_ptr, &nc_input_ptr); NcInputObject *nc_input_ref = PyObject_NEW(NcInputObject, &NcInputType); PyObject_INIT(nc_input_ref, &NcInputType); - if (code_point != -1) + if (code_point != (char32_t)-1) { nc_input_ref->codepoint = (long)nc_input_ptr.id;