[notcurses-input] cast to wint_t

This commit is contained in:
nick black 2021-12-10 03:04:39 -05:00
parent 0383afdff8
commit 3cfb3adf1a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -330,7 +330,7 @@ int input_demo(ncpp::NotCurses* nc) {
if(r < 0x80){
n->set_fg_rgb8(128, 250, 64);
if(n->printf("ASCII: [0x%02x (%03d)] '%lc'", r, r,
(wchar_t)(iswprint(r) ? r : printutf8(r))) < 0){
(wint_t)(iswprint(r) ? r : printutf8(r))) < 0){
break;
}
}else{