Use const_cast
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 29 Apr 2010 06:28:54 +0000 (02:28 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 29 Apr 2010 06:28:54 +0000 (02:28 -0400)
src/hb-open-type-private.hh

index a062aff..a1763af 100644 (file)
@@ -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) {