mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[set] Fix page_map[] indexing in backward loop.
Fixes https://github.com/behdad/harfbuzz/issues/579.
This commit is contained in:
1 parent
7339926525
commit
dfd234a97d
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user