[susbet/cff] Minor remove one indirection

This commit is contained in:
Behdad Esfahbod committed 2023-06-07 14:07:39 -06:00
1 parent 41369b6617
commit 138461beb4
1 file changed
+3 -4
+3 -4
View File
@@ -74,16 +74,15 @@ struct CFFIndex
if (unlikely (!ret)) return_trace (false);
for (const auto &_ : +it)
{
auto it = hb_iter (_);
unsigned len = hb_len (it);
unsigned len = _.length;
if (len <= 1)
{
if (!len)
continue;
*ret++ = *it.arrayZ;
*ret++ = *_.arrayZ;
continue;
}
hb_memcpy (ret, it.arrayZ, len);
hb_memcpy (ret, _.arrayZ, len);
ret += len;
}
return_trace (true);