[serialize] Enable bias assertion

This commit is contained in:
Behdad Esfahbod 2019-05-07 11:06:43 -07:00
parent 530ddbbc32
commit e6a622b5b2
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ struct hb_serialize_context_t
for (const object_t::link_t &link : parent->links) 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 <= parent->tail - parent->head); assert (link.bias <= parent->tail - parent->head);
unsigned offset = (child.head - parent->head) - link.bias; unsigned offset = (child.head - parent->head) - link.bias;
if (link.is_wide) if (link.is_wide)