This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore safe reinterpret_casts in OSXKeyState

  • Loading branch information...
nlyan committed Sep 13, 2016
1 parent 8072594 commit 602fd3f64932685be62471e2688a49757bf7b70a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/platform/OSXKeyState.cpp
@@ -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) {

0 comments on commit 602fd3f

Please sign in to comment.