Use hb_len() instead of .len()

This commit is contained in:
Behdad Esfahbod 2022-12-03 15:58:12 -07:00
parent e28e2dad03
commit 8b533763c0
1 changed files with 3 additions and 3 deletions

View File

@ -504,7 +504,7 @@ struct UnsizedArrayOf
bool serialize (hb_serialize_context_t *c, Iterator items)
{
TRACE_SERIALIZE (this);
unsigned count = items.len ();
unsigned count = hb_len (items);
if (unlikely (!serialize (c, count, false))) return_trace (false);
/* TODO Umm. Just exhaust the iterator instead? Being extra
* cautious right now.. */
@ -678,7 +678,7 @@ struct ArrayOf
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
{
TRACE_SERIALIZE (this);
unsigned count = items.len ();
unsigned count = hb_len (items);
if (unlikely (!serialize (c, count, false))) return_trace (false);
/* TODO Umm. Just exhaust the iterator instead? Being extra
* cautious right now.. */
@ -840,7 +840,7 @@ struct HeadlessArrayOf
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
{
TRACE_SERIALIZE (this);
unsigned count = items.len ();
unsigned count = hb_len (items);
if (unlikely (!serialize (c, count, false))) return_trace (false);
/* TODO Umm. Just exhaust the iterator instead? Being extra
* cautious right now.. */