Fix sign comparison error
This commit is contained in:
parent
9db7a7da63
commit
6e1c3eaf70
@ -154,7 +154,8 @@ typedef struct OffsetTable
|
|||||||
c->align (4);
|
c->align (4);
|
||||||
const char *end = (const char *) c->head;
|
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;
|
head *h = (head *) start;
|
||||||
checksum_adjustment = &h->checkSumAdjustment;
|
checksum_adjustment = &h->checkSumAdjustment;
|
||||||
|
Loading…
Reference in New Issue
Block a user