Use const_cast

pull/1/head
Behdad Esfahbod 15 years ago
parent abff3580a5
commit 602e4f8d55
  1. 3
      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) {

Loading…
Cancel
Save