mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
mk_wcwidth.c: nit
This commit is contained in:
parent
a247079058
commit
904a5b1040
@ -230,7 +230,7 @@ HsInt builtin_wcwidth(HsChar ucs)
|
||||
HsInt vty_mk_wcwidth(HsChar ch)
|
||||
{
|
||||
if (custom_table != NULL) {
|
||||
if (ch >= 0 && ch < custom_table_size) {
|
||||
if ((ch >= 0) && (ch < custom_table_size)) {
|
||||
return custom_table[ch];
|
||||
} else {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user