projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7339926
)
[set] Fix page_map[] indexing in backward loop.
author
Jonathan Kew
<jfkthame@gmail.com>
Thu, 26 Oct 2017 15:59:50 +0000
(16:59 +0100)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 26 Oct 2017 17:33:05 +0000
(12:33 -0500)
Fixes https://github.com/behdad/harfbuzz/issues/579.
src/hb-set-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-set-private.hh
b/src/hb-set-private.hh
index
df4325a
..
c970b89
100644
(file)
--- a/
src/hb-set-private.hh
+++ b/
src/hb-set-private.hh
@@
-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)