From f632633900e3d6e345dfdefdb6bcdcd7db8433d4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Nov 2025 17:47:14 -0700 Subject: [PATCH] [array] Fix build --- src/hb-array.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */