From 0fd70ee536b4c94ba0c0dbea9f1d08de1ad83461 Mon Sep 17 00:00:00 2001 From: crs Date: Mon, 17 Mar 2003 22:31:59 +0000 Subject: [PATCH] Added type casts to avoid warning. --- lib/platform/CMSWindowsSecondaryScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/platform/CMSWindowsSecondaryScreen.cpp b/lib/platform/CMSWindowsSecondaryScreen.cpp index f0cb0062..9f335e54 100644 --- a/lib/platform/CMSWindowsSecondaryScreen.cpp +++ b/lib/platform/CMSWindowsSecondaryScreen.cpp @@ -470,9 +470,9 @@ CMSWindowsSecondaryScreen::updateKeys() m_keys[VK_SCROLL] = static_cast(GetKeyState(VK_SCROLL)); // copy over lock states to m_fakeKeys - m_fakeKeys[VK_CAPITAL] = (m_keys[VK_CAPITAL] & 0x01); - m_fakeKeys[VK_NUMLOCK] = (m_keys[VK_NUMLOCK] & 0x01); - m_fakeKeys[VK_SCROLL] = (m_keys[VK_SCROLL] & 0x01); + m_fakeKeys[VK_CAPITAL] = static_cast(m_keys[VK_CAPITAL] & 0x01); + m_fakeKeys[VK_NUMLOCK] = static_cast(m_keys[VK_NUMLOCK] & 0x01); + m_fakeKeys[VK_SCROLL] = static_cast(m_keys[VK_SCROLL] & 0x01); // update active modifier mask m_mask = 0;