From ae5e6d562bd49eed1438ecafc1c0b37ba77e0da3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 29 Nov 2022 15:48:38 -0700 Subject: [PATCH] [ClassDef2] Micro-optimize --- src/hb-ot-layout-common.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 0f863f80f..92612456c 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1815,10 +1815,10 @@ struct ClassDefFormat2_4 unsigned count = rangeRecord.len; for (unsigned i = 0; i < count; i++) { - unsigned klass = rangeRecord[i].value; + unsigned klass = rangeRecord.arrayZ[i].value; if (!klass) continue; - hb_codepoint_t start = rangeRecord[i].first; - hb_codepoint_t end = hb_min (rangeRecord[i].last + 1, num_source_glyphs); + hb_codepoint_t start = rangeRecord.arrayZ[i].first; + hb_codepoint_t end = hb_min (rangeRecord.arrayZ[i].last + 1, num_source_glyphs); for (hb_codepoint_t g = start; g < end; g++) { hb_codepoint_t new_gid = glyph_map[g];