diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a062aff19..a1763af46 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -276,8 +276,7 @@ struct Sanitizer _hb_sanitize_init (context, blob); - /* Note: We drop const here */ - Type *t = CastP ((void *) context->start); + Type *t = CastP (const_cast (context->start)); sane = t->sanitize (SANITIZE_ARG); if (sane) {