[set] Fix crash
Ouch! That's what happens when one plays with increment/decrement operators! Fixes https://github.com/behdad/harfbuzz/issues/578
This commit is contained in:
parent
61d1c60a1c
commit
8170801d78
|
@ -331,10 +331,12 @@ struct hb_set_t
|
|||
b--;
|
||||
}
|
||||
}
|
||||
while (a >= 0)
|
||||
page_at (--count).v = page_at (--a).v;
|
||||
while (b >= 0)
|
||||
page_at (--count).v = other->page_at (--b).v;
|
||||
if (Op::passthru_left)
|
||||
while (a >= 0)
|
||||
page_at (--count).v = page_at (a--).v;
|
||||
if (Op::passthru_right)
|
||||
while (b >= 0)
|
||||
page_at (--count).v = other->page_at (b--).v;
|
||||
assert (!count);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue