diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index c02032cf9..ff19121db 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -350,18 +350,17 @@ struct hb_sanitize_context_t : } template - bool check_array (const T *base, - unsigned int len) const + bool check_array (const T *base, unsigned int len) const { - return this->check_range (base, len, T::static_size); + return this->check_range (base, len, hb_static_size (T)); } template bool check_array (const T *base, - unsigned int a, - unsigned int b) const + unsigned int a, + unsigned int b) const { - return this->check_range (base, a, b, T::static_size); + return this->check_range (base, a, b, hb_static_size (T)); } template