提交 515a0ac8 编写于 作者: B Behdad Esfahbod

Fix compiler warning

上级 10f96462
......@@ -1014,7 +1014,7 @@ struct ClassDefFormat2
if (klass == 0)
{
/* Match if there's any glyph that is not listed! */
hb_codepoint_t g = -1;
hb_codepoint_t g = (hb_codepoint_t) -1;
for (unsigned int i = 0; i < count; i++)
{
if (!hb_set_next (glyphs, &g))
......@@ -1023,7 +1023,7 @@ struct ClassDefFormat2
return true;
g = rangeRecord[i].end;
}
if (g != -1 && hb_set_next (glyphs, &g))
if (g != (hb_codepoint_t) -1 && hb_set_next (glyphs, &g))
return true;
/* Fall through. */
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册