[serialize] Enable bias assertion

This commit is contained in:
Behdad Esfahbod 2019-05-07 11:06:43 -07:00
parent 530ddbbc32
commit e6a622b5b2

View File

@ -292,7 +292,7 @@ struct hb_serialize_context_t
for (const object_t::link_t &link : parent->links)
{
const object_t &child = *packed[link.objidx];
//assert (link.bias <= parent->tail - parent->head);
assert (link.bias <= parent->tail - parent->head);
unsigned offset = (child.head - parent->head) - link.bias;
if (link.is_wide)