mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Fix loop
This commit is contained in:
1 parent
56bef5680c
commit
226faa58f4
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user