From 602e4f8d5512cdf48c696ad64ad62ff97f6dbdcc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 29 Apr 2010 02:28:54 -0400 Subject: [PATCH] Use const_cast --- src/hb-open-type-private.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a062aff..a1763af 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) { -- 2.7.4