Fix loop
This commit is contained in:
parent
56bef5680c
commit
226faa58f4
|
@ -157,8 +157,8 @@ hb_ot_tag_to_script (hb_tag_t tag)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_LENGTH (ot_scripts); i++) {
|
for (i = 0; i < ARRAY_LENGTH (ot_scripts); i++) {
|
||||||
const hb_tag_t *p = ot_scripts[i];
|
const hb_tag_t *p;
|
||||||
while (*p)
|
for (p = ot_scripts[i]; *p; p++)
|
||||||
if (tag == *p)
|
if (tag == *p)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue