From 00a9df3a43484f81d02baf9e726993ff67bb523f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 25 Nov 2022 13:05:05 -0700 Subject: [PATCH] [subset-cff] Micro-optimize collect_subr_refs_in_str --- src/hb-subset-cff-common.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-subset-cff-common.hh b/src/hb-subset-cff-common.hh index 1a886cf84..27c986e85 100644 --- a/src/hb-subset-cff-common.hh +++ b/src/hb-subset-cff-common.hh @@ -842,19 +842,19 @@ struct subr_subsetter_t { for (unsigned int pos = 0; pos < str.values.length; pos++) { - if (!str.values[pos].for_drop ()) + if (!str.values.arrayZ[pos].for_drop ()) { - switch (str.values[pos].op) + switch (str.values.arrayZ[pos].op) { case OpCode_callsubr: collect_subr_refs_in_subr (str, pos, - str.values[pos].subr_num, *param.parsed_local_subrs, + str.values.arrayZ[pos].subr_num, *param.parsed_local_subrs, param.local_closure, param); break; case OpCode_callgsubr: collect_subr_refs_in_subr (str, pos, - str.values[pos].subr_num, *param.parsed_global_subrs, + str.values.arrayZ[pos].subr_num, *param.parsed_global_subrs, param.global_closure, param); break;