1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

cast to unsigned char

This commit is contained in:
ailin-nemui 2018-11-12 14:11:27 +01:00
parent 9e5e5d8625
commit deaa1da55e

View File

@ -218,7 +218,8 @@ CODE:
RETVAL = i_wcwidth(chr); RETVAL = i_wcwidth(chr);
} }
} else if (term_type != TERM_TYPE_BIG5 || } else if (term_type != TERM_TYPE_BIG5 ||
c[1] == '\0' || !is_big5(c[0], c[1])) { c[1] == '\0' ||
!is_big5((unsigned char) c[0], (unsigned char) c[1])) {
RETVAL = 1; RETVAL = 1;
} else { } else {
RETVAL = 2; RETVAL = 2;