python: Fixed the error check on input using wrong c type

pull/1169/head
igo95862 4 years ago
parent b2163e8f8c
commit 788a327c98
No known key found for this signature in database
GPG Key ID: F1A55E62951B2143

@ -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;

Loading…
Cancel
Save