projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abff358
)
Use const_cast
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 29 Apr 2010 06:28:54 +0000
(
02:28
-0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 29 Apr 2010 06:28:54 +0000
(
02:28
-0400)
src/hb-open-type-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-open-type-private.hh
b/src/hb-open-type-private.hh
index
a062aff
..
a1763af
100644
(file)
--- 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) {