mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
cast to unsigned char
This commit is contained in:
parent
9e5e5d8625
commit
deaa1da55e
1 changed files with 2 additions and 1 deletions
|
|
@ -218,7 +218,8 @@ CODE:
|
|||
RETVAL = i_wcwidth(chr);
|
||||
}
|
||||
} 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;
|
||||
} else {
|
||||
RETVAL = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue