[repacker] correct MarkArray size calculation.

This commit is contained in:
Garret Rieger 2022-08-17 17:51:02 +00:00
parent 36c76c27c6
commit b46ced9562
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ struct MarkArray : public OT::Layout::GPOS_impl::MarkArray
}
this->len = new_index;
o.tail = o.head + MarkArray::min_size + OT::Offset16::static_size * new_index;
o.tail = o.head + MarkArray::min_size +
OT::Layout::GPOS_impl::MarkRecord::static_size * new_index;
return true;
}