diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index a8fd8d32e..971359f40 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -294,12 +294,14 @@ struct hb_serialize_context_t if (link.is_wide) { auto &off = * ((BEInt *) (parent.head + link.position)); + assert (0 == off); off = offset; propagate_error (off == offset); } else { auto &off = * ((BEInt *) (parent.head + link.position)); + assert (0 == off); off = offset; propagate_error (off == offset); }