[saitnize] Minor
This commit is contained in:
parent
3ee4ea9456
commit
5000a59a63
|
@ -386,8 +386,10 @@ struct hb_sanitize_context_t :
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Type, typename ValueType>
|
template <typename Type, typename ValueType>
|
||||||
bool try_set (const Type *obj, const ValueType &v) {
|
bool try_set (const Type *obj, const ValueType &v)
|
||||||
if (this->may_edit (obj, obj->static_size)) {
|
{
|
||||||
|
if (this->may_edit (obj, hb_static_size (Type)))
|
||||||
|
{
|
||||||
const_cast<Type *> (obj)->set (v);
|
const_cast<Type *> (obj)->set (v);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue