[icu] Minor
This commit is contained in:
parent
0bcb1de126
commit
7b85081be4
|
@ -65,8 +65,8 @@ hb_icu_script_from_script (hb_script_t script)
|
||||||
if (unlikely (script == HB_SCRIPT_INVALID))
|
if (unlikely (script == HB_SCRIPT_INVALID))
|
||||||
return USCRIPT_INVALID_CODE;
|
return USCRIPT_INVALID_CODE;
|
||||||
|
|
||||||
unsigned int maxScriptCode = u_getIntPropertyMaxValue(UCHAR_SCRIPT);
|
unsigned int numScriptCode = 1 + u_getIntPropertyMaxValue (UCHAR_SCRIPT);
|
||||||
for (unsigned int i = 0; i <= maxScriptCode; i++)
|
for (unsigned int i = 0; i < numScriptCode; i++)
|
||||||
if (unlikely (hb_icu_script_to_script ((UScriptCode) i) == script))
|
if (unlikely (hb_icu_script_to_script ((UScriptCode) i) == script))
|
||||||
return (UScriptCode) i;
|
return (UScriptCode) i;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue