on master help sign in
mk_wcwidth.c: nit
commit904a5b1040b9f5b09b34b6486fa82b7e8b059f03 authorJonathan Daugherty <cygnus@foobox.com> dateThu 5 Mar 2020, 11:07 (7 years ago) parenta247079
1 file changed+1−1
cbits/mk_wcwidth.c+1−1
cbits/mk_wcwidth.c+1−1
@@ -230,7 +230,7 @@ HsInt builtin_wcwidth(HsChar ucs)
230230HsInt vty_mk_wcwidth(HsChar ch)
231231{
232232 if (custom_table != NULL) {
233− if (ch >= 0 && ch < custom_table_size) {
233+ if ((ch >= 0) && (ch < custom_table_size)) {
234234 return custom_table[ch];
235235 } else {
236236 return 0;