[sanitize] Use hb_static_size instead of ::static_size
https://github.com/harfbuzz/harfbuzz/issues/1496#issuecomment-448818112
This commit is contained in:
parent
0c9cd5d5f4
commit
a62870506d
|
@ -350,18 +350,17 @@ struct hb_sanitize_context_t :
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool check_array (const T *base,
|
bool check_array (const T *base, unsigned int len) const
|
||||||
unsigned int len) const
|
|
||||||
{
|
{
|
||||||
return this->check_range (base, len, T::static_size);
|
return this->check_range (base, len, hb_static_size (T));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool check_array (const T *base,
|
bool check_array (const T *base,
|
||||||
unsigned int a,
|
unsigned int a,
|
||||||
unsigned int b) const
|
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 <typename Type>
|
template <typename Type>
|
||||||
|
|
Loading…
Reference in New Issue