diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 3fb6829b3..93f8f6ea1 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -2504,7 +2504,7 @@ struct ExtensionFormat1 template const X& get_subtable () const - { return this + (LOffsetTo&) extensionOffset; } + { return this + CastR> (extensionOffset); } template typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const