summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-08-09 09:40:59 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-08-09 09:40:59 -0400
commit515a0ac81e531c95b1bb7f1a3c5df73a9e64b14f (patch)
tree717f62d0feac09e47d7c9fa3243fdb1e45c35d3f
parent10f964623f003c70f6bdd33423420abda3820ce0 (diff)
Fix compiler warning
-rw-r--r--src/hb-ot-layout-common-private.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh
index 86224a15..2f6e8046 100644
--- a/src/hb-ot-layout-common-private.hh
+++ b/src/hb-ot-layout-common-private.hh
@@ -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. */
}