Skip to content

Commit

Permalink
[sanitize] Use hb_static_size instead of ::static_size
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Dec 20, 2018
1 parent 0c9cd5d commit a628705
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/hb-machinery.hh
Original file line number Diff line number Diff line change
Expand Up @@ -350,18 +350,17 @@ struct hb_sanitize_context_t :
}

template <typename T>
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 <typename T>
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 <typename Type>
Expand Down

0 comments on commit a628705

Please sign in to comment.