Cast towupper to wchar_t

For some reason it takes and returns wint_t...
weechat-hashes
C. McEnroe 2020-02-11 03:48:50 -05:00
parent b855ec6210
commit 86fac7caad
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -843,7 +843,7 @@ static void keyCtrl(wchar_t ch) {
static void keyStyle(wchar_t ch) {
size_t id = windows.active->id;
switch (iswcntrl(ch) ? ch ^ L'@' : towupper(ch)) {
switch (iswcntrl(ch) ? ch ^ L'@' : (wchar_t)towupper(ch)) {
break; case L'B': edit(id, EditInsert, B);
break; case L'C': edit(id, EditInsert, C);
break; case L'I': edit(id, EditInsert, I);