提交 7587683c 编写于 作者: B Behdad Esfahbod

[set] Minor

In preparation to fix https://github.com/harfbuzz/harfbuzz/issues/863

Binary operations are sets are completely broken. Ouch.
上级 e4cbb87b
......@@ -430,19 +430,26 @@ struct hb_set_t
{
a--;
b--;
Op::process (page_at (--count).v, page_at (a).v, other->page_at (b).v);
count--;
Op::process (page_at (count).v, page_at (a).v, other->page_at (b).v);
}
else if (page_map[a - 1].major > other->page_map[b - 1].major)
{
a--;
if (Op::passthru_left)
page_at (--count).v = page_at (a).v;
a--;
if (Op::passthru_left)
{
count--;
page_at (count).v = page_at (a).v;
}
}
else
{
b--;
if (Op::passthru_right)
page_at (--count).v = other->page_at (b).v;
b--;
if (Op::passthru_right)
{
count--;
page_at (count).v = other->page_at (b).v;
}
}
}
if (Op::passthru_left)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册