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:
9db7a7d
)
Fix sign comparison error
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 28 Jan 2019 19:12:41 +0000
(14:12 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 28 Jan 2019 19:12:41 +0000
(14:12 -0500)
src/hb-open-file.hh
patch
|
blob
|
history
diff --git
a/src/hb-open-file.hh
b/src/hb-open-file.hh
index
de22ed5
..
32a223c
100644
(file)
--- a/
src/hb-open-file.hh
+++ b/
src/hb-open-file.hh
@@
-154,7
+154,8
@@
typedef struct OffsetTable
c->align (4);
const char *end = (const char *) c->head;
- if (items[i].tag == HB_OT_TAG_head && end - start >= head::static_size)
+ if (items[i].tag == HB_OT_TAG_head &&
+ (unsigned) (end - start) >= head::static_size)
{
head *h = (head *) start;
checksum_adjustment = &h->checkSumAdjustment;