From b46ced956285b1e554dea2086dbe48d78a458692 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 17 Aug 2022 17:51:02 +0000 Subject: [PATCH] [repacker] correct MarkArray size calculation. --- src/graph/markbasepos-graph.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graph/markbasepos-graph.hh b/src/graph/markbasepos-graph.hh index 86ed3ca6b..390bc7249 100644 --- a/src/graph/markbasepos-graph.hh +++ b/src/graph/markbasepos-graph.hh @@ -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; }