[machinery] Minor

This commit is contained in:
Behdad Esfahbod 2019-12-10 12:52:32 -06:00
parent e101a67257
commit 85574ec287
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static inline const Type& StructAtOffsetUnaligned(const void *P, unsigned int of
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
return * reinterpret_cast<Type*> ((char *) P + offset);
return * reinterpret_cast<const Type*> ((const char *) P + offset);
#pragma GCC diagnostic pop
}
template<typename Type>