This commit is contained in:
Behdad Esfahbod 2019-05-07 13:45:48 -07:00
parent 7c037bd2be
commit 52f6c04c1e

View File

@ -290,13 +290,13 @@ struct hb_serialize_context_t
assert (!current);
assert (packed.length > 1);
for (const object_t *parent : ++hb_iter (packed))
for (const object_t* parent : ++hb_iter (packed))
{
for (const object_t::link_t &link : parent->links)
{
const object_t &child = *packed[link.objidx];
const object_t* child = packed[link.objidx];
assert (link.bias <= (size_t) (parent->tail - parent->head));
unsigned offset = (child.head - parent->head) - link.bias;
unsigned offset = (child->head - parent->head) - link.bias;
if (link.is_wide)
{