[subset/cff1] Micro-optimize

Is ugly but shows speedup.
pull/4269/head
Behdad Esfahbod 1 year ago
parent 469e82a227
commit 7d9698123c
  1. 2
      src/hb-ot-cff-common.hh

@ -87,7 +87,7 @@ struct CFFIndex
{ {
unsigned char *ret = c->allocate_size<unsigned char> (1, false); unsigned char *ret = c->allocate_size<unsigned char> (1, false);
if (unlikely (!ret)) return_trace (false); if (unlikely (!ret)) return_trace (false);
*ret = *it; *ret = *it.arrayZ;
continue; continue;
} }
it.copy (c); it.copy (c);

Loading…
Cancel
Save