diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 017d2bac6..7754b3d1f 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -1486,14 +1486,13 @@ xputc_core(int ch) void console_g_putch(int in_ch) { - unsigned char ch; + unsigned char ch = (unsigned char) in_ch; cell_t cell; #ifndef VIRTUAL_TERMINAL_SEQUENCES boolean inverse = FALSE; #else /* VIRTUAL_TERMINAL_SEQUENCES */ ccount = 0; WCHAR wch[2]; - ch = (unsigned char) in_ch; boolean usemap = (ch >= 0 && ch < SIZE(console.cpMap)); #endif /* VIRTUAL_TERMINAL_SEQUENCES */