提交 dfd234a9 编写于 作者: J Jonathan Kew 提交者: Behdad Esfahbod

[set] Fix page_map[] indexing in backward loop.

Fixes https://github.com/behdad/harfbuzz/issues/579.
上级 73399265
......@@ -313,13 +313,13 @@ struct hb_set_t
b = nb;
for (; a && b; )
{
if (page_map[a].major == other->page_map[b].major)
if (page_map[a - 1].major == other->page_map[b - 1].major)
{
a--;
b--;
Op::process (page_at (--count).v, page_at (a).v, other->page_at (b).v);
}
else if (page_map[a].major > other->page_map[b].major)
else if (page_map[a - 1].major > other->page_map[b - 1].major)
{
a--;
if (Op::passthru_left)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册