diff --git a/src/OT/Var/VARC/VARC.cc b/src/OT/Var/VARC/VARC.cc index 7af122da9..066e5bfc6 100644 --- a/src/OT/Var/VARC/VARC.cc +++ b/src/OT/Var/VARC/VARC.cc @@ -148,7 +148,7 @@ VarComponent::get_path_at (hb_font_t *font, #define READ_UINT32VAR(name) \ HB_STMT_START { \ - if (unlikely (end - record < HBUINT32VAR::min_size)) return hb_ubytes_t (); \ + if (unlikely (unsigned (end - record) < HBUINT32VAR::min_size)) return hb_ubytes_t (); \ hb_barrier (); \ auto &varint = * (const HBUINT32VAR *) record; \ unsigned size = varint.get_size (); \