mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[serialize] Fix offset calculation
This commit is contained in:
1 parent
db0c9a1485
commit
693d91cd49
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user