diff --git a/src/hb-sanitize.hh b/src/hb-sanitize.hh index eb907c6b2..5b9fe92a4 100644 --- a/src/hb-sanitize.hh +++ b/src/hb-sanitize.hh @@ -248,25 +248,15 @@ struct hb_sanitize_context_t : return likely (ok); } - template - bool check_range (const T *base, - unsigned int a, - unsigned int b) const - { - unsigned m; - return !hb_unsigned_mul_overflows (a, b, &m) && - this->check_range (base, m); - } - - template + template bool check_range (const T *base, unsigned int a, unsigned int b, - unsigned int c) const + Ts&... ds) const { unsigned m; return !hb_unsigned_mul_overflows (a, b, &m) && - this->check_range (base, m, c); + this->check_range (base, m, ds...); } template