mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-17 02:35:52 +00:00
Fix cast warnings on clang (#768)
This commit is contained in:
parent
8cef3a6199
commit
ad575a5f47
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue