diff --git a/Sources/Plasma/PubUtilLib/plInputCore/plInputManager.cpp b/Sources/Plasma/PubUtilLib/plInputCore/plInputManager.cpp index c9a26f7d..d81a3265 100644 --- a/Sources/Plasma/PubUtilLib/plInputCore/plInputManager.cpp +++ b/Sources/Plasma/PubUtilLib/plInputCore/plInputManager.cpp @@ -296,7 +296,7 @@ void plInputManager::HandleWin32ControlEvent(UINT message, WPARAM Wparam, LPARAM if (Wparam == KEY_BACKSPACE || Wparam == KEY_ESCAPE) break; - BYTE scan = Lparam >> 16; + BYTE scan = (BYTE)(Lparam >> 16); UINT vkey = MapVirtualKey(scan, MAPVK_VSC_TO_VK); bExtended = Lparam >> 24 & 1;