[saitnize] Minor

This commit is contained in:
Behdad Esfahbod committed 2018-12-19 22:27:09 -05:00
1 parent 3ee4ea9456
commit 5000a59a63
1 file changed
+4 -2
+4 -2
View File
@@ -386,8 +386,10 @@ struct hb_sanitize_context_t :
}
template <typename Type, typename ValueType>
bool try_set (const Type *obj, const ValueType &v) {
if (this->may_edit (obj, obj->static_size)) {
bool try_set (const Type *obj, const ValueType &v)
{
if (this->may_edit (obj, hb_static_size (Type)))
{
const_cast<Type *> (obj)->set (v);
return true;
}