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:
938de31
)
Fix signed-comparison error on 32bit
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 18:51:10 +0000
(11:51 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 18:51:10 +0000
(11:51 -0700)
src/hb-serialize.hh
patch
|
blob
|
history
diff --git
a/src/hb-serialize.hh
b/src/hb-serialize.hh
index
4e270ce
..
27c8c17
100644
(file)
--- a/
src/hb-serialize.hh
+++ b/
src/hb-serialize.hh
@@
-292,7
+292,7
@@
struct hb_serialize_context_t
for (const object_t::link_t &link : parent->links)
{
const object_t &child = *packed[link.objidx];
- assert (link.bias <=
parent->tail - parent->head
);
+ assert (link.bias <=
(size_t) (parent->tail - parent->head)
);
unsigned offset = (child.head - parent->head) - link.bias;
if (link.is_wide)