提交 0084b159 编写于 作者: A Amos Bird

fix left/bs for release build

上级 6d12c685
......@@ -57,7 +57,8 @@ void getPrevCharSize(const char *str, int pos, int *size, int *width) {
if (str[pos] > 0 || countPrefixOnes(str[pos]) > 1) break;
}
assert(mbtowc(&wc, str + pos, MB_CUR_MAX) == *size);
int rc = mbtowc(&wc, str + pos, MB_CUR_MAX);
assert(rc == *size);
*width = wcwidth(wc);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册