Fix sign comparison error

This commit is contained in:
Behdad Esfahbod 2019-01-28 14:12:41 -05:00
parent 9db7a7da63
commit 6e1c3eaf70
1 changed files with 2 additions and 1 deletions

View File

@ -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;