diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 971359f40cf7926f5abfa6d326df72876a065cc3..311eacfe40a623ffde8d72781ef7c91ed6e04c67 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -272,7 +272,7 @@ struct hb_serialize_context_t auto& link = *current->links.push (); link.is_wide = sizeof (T) == 4; - link.position = (const char *) &ofs - (const char *) base; + link.position = (const char *) &ofs - current->head; link.bias = (const char *) base - current->head; link.objidx = objidx; }