summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-04-29 02:28:54 -0400
committerBehdad Esfahbod <behdad@behdad.org>2010-04-29 02:28:54 -0400
commit602e4f8d5512cdf48c696ad64ad62ff97f6dbdcc (patch)
treec1dc8e18f4dc6c57edddbc27f46f5035b2c5d49f
parentabff3580a5b229641086e0da097efee11d22ff81 (diff)
Use const_cast
-rw-r--r--src/hb-open-type-private.hh3
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) {