提交 226faa58 编写于 作者: B Behdad Esfahbod

Fix loop

上级 56bef568
......@@ -157,8 +157,8 @@ hb_ot_tag_to_script (hb_tag_t tag)
int i;
for (i = 0; i < ARRAY_LENGTH (ot_scripts); i++) {
const hb_tag_t *p = ot_scripts[i];
while (*p)
const hb_tag_t *p;
for (p = ot_scripts[i]; *p; p++)
if (tag == *p)
return i;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册