pull/1/head
Behdad Esfahbod 12 years ago
parent 652d1e0d64
commit 715e03bc21
  1. 7
      src/hb-open-type-private.hh

@ -725,11 +725,8 @@ struct GenericArrayOf
unsigned int items_len)
{
TRACE_SERIALIZE ();
if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
len.set (items_len); /* TODO(serialize) Overflow? */
if (unlikely (!c->extend (*this))) return TRACE_RETURN (false);
unsigned int count = items_len;
for (unsigned int i = 0; i < count; i++)
if (unlikely (!serialize (c, items_len))) return TRACE_RETURN (false);
for (unsigned int i = 0; i < items_len; i++)
array[i].set (items[i]);
items.advance (items_len);
return TRACE_RETURN (true);

Loading…
Cancel
Save