[array] Fix build

This commit is contained in:
Behdad Esfahbod committed 2025-11-21 17:47:14 -07:00
1 parent 072299a25c
commit f632633900
1 file changed
+1 -1
+1 -1
View File
@@ -295,7 +295,7 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, 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. */