未验证 提交 ad575a5f 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

Fix cast warnings on clang (#768)

上级 8cef3a61
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册