diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-04-29 02:28:54 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-04-29 02:28:54 -0400 |
commit | 602e4f8d5512cdf48c696ad64ad62ff97f6dbdcc (patch) | |
tree | c1dc8e18f4dc6c57edddbc27f46f5035b2c5d49f | |
parent | abff3580a5b229641086e0da097efee11d22ff81 (diff) |
Use const_cast
-rw-r--r-- | src/hb-open-type-private.hh | 3 |
1 files changed, 1 insertions, 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<Type> ((void *) context->start); + Type *t = CastP<Type> (const_cast<char *> (context->start)); sane = t->sanitize (SANITIZE_ARG); if (sane) { |