提交 6e1c3eaf 编写于 作者: B Behdad Esfahbod

Fix sign comparison error

上级 9db7a7da
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册