From cec6d75f94400ddb7b39e61a9b16584d9f4599d0 Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Wed, 25 Jan 2012 20:40:42 +0100 Subject: [PATCH] Fix a warning while I'm at it. --- Sources/Plasma/PubUtilLib/plInputCore/plInputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;