Use const_cast

This commit is contained in:
Behdad Esfahbod 2010-04-29 02:28:54 -04:00
parent abff3580a5
commit 602e4f8d55
1 changed files with 1 additions and 2 deletions

View 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) {