From ad575a5f47a51ee553710873ac2672479b76ba5e Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 10 Feb 2018 19:50:11 +0330 Subject: [PATCH] Fix cast warnings on clang (#768) --- src/hb-open-type-private.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index be3ecb499..3a8f738bc 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -508,7 +508,7 @@ struct Supplier inline const Type operator [] (unsigned int i) const { if (unlikely (i >= len)) return Type (); - return * (const Type *) ((const char *) head + stride * i); + return * (const Type *) (const void *) ((const char *) head + stride * i); } inline void advance (unsigned int count) @@ -516,7 +516,7 @@ struct Supplier if (unlikely (count > len)) count = len; len -= count; - head = (const Type *) ((const char *) head + stride * count); + head = (const Type *) (const void *) ((const char *) head + stride * count); } private: