mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
[set] Minor
In preparation to fix https://github.com/harfbuzz/harfbuzz/issues/863 Binary operations are sets are completely broken. Ouch.
This commit is contained in:
1 parent
e4cbb87bd3
commit
7587683cdc
1 file changed
+14
-7
+14
-7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user