Fix compiler warning

This commit is contained in:
Behdad Esfahbod 2013-08-09 09:40:59 -04:00
parent 10f964623f
commit 515a0ac81e
1 changed files with 2 additions and 2 deletions

View File

@ -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. */
}