[serialize] Fix offset calculation

pull/1674/head
Behdad Esfahbod 6 years ago
parent db0c9a1485
commit 693d91cd49
  1. 2
      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;
}

Loading…
Cancel
Save