diff --git a/src/hb-array.hh b/src/hb-array.hh index 4506bb669..b0fbe1b60 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -295,7 +295,7 @@ struct hb_array_t : hb_iter_with_fallback_t, Type&> hb_enable_if (P == 1)> bool check_end (const void *p) const { - return ((const char *) p) - arrayZ <= length; + return (uintptr_t) (((const char *) p) - arrayZ) <= length; } /* Only call if you allocated the underlying array using hb_malloc() or similar. */