Use const_cast
This commit is contained in:
parent
abff3580a5
commit
602e4f8d55
|
@ -276,8 +276,7 @@ struct Sanitizer
|
||||||
|
|
||||||
_hb_sanitize_init (context, blob);
|
_hb_sanitize_init (context, blob);
|
||||||
|
|
||||||
/* Note: We drop const here */
|
Type *t = CastP<Type> (const_cast<char *> (context->start));
|
||||||
Type *t = CastP<Type> ((void *) context->start);
|
|
||||||
|
|
||||||
sane = t->sanitize (SANITIZE_ARG);
|
sane = t->sanitize (SANITIZE_ARG);
|
||||||
if (sane) {
|
if (sane) {
|
||||||
|
|
Loading…
Reference in New Issue