[serialize] Enable bias assertion
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 18:06:43 +0000 (11:06 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 18:06:43 +0000 (11:06 -0700)
src/hb-serialize.hh

index 1a6ed21..4e270ce 100644 (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)