From 5000a59a6391d588c2cbdda132839b1fb1f75bf2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 Dec 2018 21:07:53 -0500 Subject: [PATCH] [saitnize] Minor --- src/hb-machinery.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }