diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index ff19121db..8cce61c9c 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -386,8 +386,10 @@ struct hb_sanitize_context_t : } template - 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 (obj)->set (v); return true; }