[os2] Rewrite a loop

This commit is contained in:
Behdad Esfahbod 2023-01-12 18:37:45 -07:00
parent 082e5c5def
commit 9fb9be8d43
1 changed files with 4 additions and 3 deletions

View File

@ -284,8 +284,9 @@ struct OS2
for (unsigned int i = 0; i < 4; i++) for (unsigned int i = 0; i < 4; i++)
newBits[i] = 0; newBits[i] = 0;
hb_codepoint_t cp = HB_SET_VALUE_INVALID; for (hb_codepoint_t cp = HB_SET_VALUE_INVALID;
while (codepoints->next (&cp)) { codepoints->next (&cp);)
{
unsigned int bit = _hb_ot_os2_get_unicode_range_bit (cp); unsigned int bit = _hb_ot_os2_get_unicode_range_bit (cp);
if (bit < 128) if (bit < 128)
{ {