From 42bf7ce7c957d3e5639b685bcff08d47a68dd2ca Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 2 Jun 2024 10:34:34 -0600 Subject: [PATCH] Try to fix warning on 32bit system Hopefully fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69281 --- src/OT/Var/VARC/VARC.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/Var/VARC/VARC.cc b/src/OT/Var/VARC/VARC.cc index ab62961c6..217f30346 100644 --- a/src/OT/Var/VARC/VARC.cc +++ b/src/OT/Var/VARC/VARC.cc @@ -152,7 +152,7 @@ VarComponent::get_path_at (hb_font_t *font, hb_barrier (); \ auto &varint = * (const HBUINT32VAR *) record; \ unsigned size = varint.get_size (); \ - if (unlikely (end - record < size)) return hb_ubytes_t (); \ + if (unlikely (unsigned (end - record) < size)) return hb_ubytes_t (); \ name = (uint32_t) varint; \ record += size; \ } HB_STMT_END