From c69f02784ac53a7fd13eee559559b38d8224ef59 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Apr 2019 16:31:37 -0700 Subject: [PATCH] Fix sign-compare error on 32-bit systems --- src/hb-open-type.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index b232fdb..041b984 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -182,7 +182,7 @@ struct Offset : Type void *serialize (hb_serialize_context_t *c, const void *base) { void *t = c->start_embed (); - c->check_assign (*this, (char *) t - (char *) base); + c->check_assign (*this, (unsigned) ((char *) t - (char *) base)); return t; } -- 2.7.4