Fix compiler warning
This commit is contained in:
parent
10f964623f
commit
515a0ac81e
|
@ -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. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue