From 86fac7caadfbefa6f044314d440deefb480133d7 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 11 Feb 2020 03:48:50 -0500 Subject: Cast towupper to wchar_t For some reason it takes and returns wint_t... --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.c b/ui.c index 3017758..34b6f7d 100644 --- a/ui.c +++ b/ui.c @@ -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); -- cgit 1.4.1