Restore safe reinterpret_casts in OSXKeyState

This commit is contained in:
Andrew Nelless 2016-09-13 11:18:59 +01:00
parent 8072594008
commit 602fd3f649

View File

@ -415,7 +415,7 @@ OSXKeyState::pollPressedKeys(KeyButtonSet& pressedKeys) const
{
::KeyMap km;
GetKeys(km);
const UInt8* m = static_cast<const UInt8*>(km);
const UInt8* m = reinterpret_cast<const UInt8*>(km);
for (UInt32 i = 0; i < 16; ++i) {
for (UInt32 j = 0; j < 8; ++j) {
if ((m[i] & (1u << j)) != 0) {