[subset-cff] Micro-optimize collect_subr_refs_in_str

This commit is contained in:
Behdad Esfahbod 2022-11-25 13:05:05 -07:00
parent d2a2f5bf4e
commit 00a9df3a43
1 changed files with 4 additions and 4 deletions

View File

@ -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;