diff options
author | Peter Åstrand <astrand@cendio.se> | 2010-02-10 10:20:11 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2010-02-10 10:20:11 +0000 |
commit | 6820f6a483942c53b422e3907094a72dc7d91746 (patch) | |
tree | 0852e794ff3b1b30a15c19e18143c148c732394b /win | |
parent | af2b2776cb2af909ec7ec659e66ed8133a302916 (diff) | |
download | tigervnc-6820f6a483942c53b422e3907094a72dc7d91746.tar.gz tigervnc-6820f6a483942c53b422e3907094a72dc7d91746.zip |
Eliminated signed/unsigned warnings.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3977 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r-- | win/rfb_win32/SInput.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win/rfb_win32/SInput.cxx b/win/rfb_win32/SInput.cxx index a8e6941c..aa8a21bc 100644 --- a/win/rfb_win32/SInput.cxx +++ b/win/rfb_win32/SInput.cxx @@ -333,7 +333,7 @@ void doKeyEventWithModifiers(BYTE vkCode, BYTE modifierState, bool down) win32::SKeyboard::SKeyboard() { oneShift = rfb::win32::osVersion.isPlatformWindows; - for (int i = 0; i < sizeof(keymap) / sizeof(keymap_t); i++) { + for (unsigned int i = 0; i < sizeof(keymap) / sizeof(keymap_t); i++) { vkMap[keymap[i].keysym] = keymap[i].vk; extendedMap[keymap[i].keysym] = keymap[i].extended; } @@ -342,7 +342,7 @@ win32::SKeyboard::SKeyboard() // XXX how could we handle the keyboard layout changing? BYTE keystate[256]; memset(keystate, 0, 256); - for (int j = 0; j < sizeof(latin1DeadChars); j++) { + for (unsigned int j = 0; j < sizeof(latin1DeadChars); j++) { SHORT s = VkKeyScan(latin1DeadChars[j]); if (s != -1) { BYTE vkCode = LOBYTE(s); @@ -365,7 +365,7 @@ win32::SKeyboard::SKeyboard() void win32::SKeyboard::keyEvent(rdr::U32 keysym, bool down) { - for (int i = 0; i < sizeof(keysymToAscii) / sizeof(keysymToAscii_t); i++) { + for (unsigned int i = 0; i < sizeof(keysymToAscii) / sizeof(keysymToAscii_t); i++) { if (keysymToAscii[i].keysym == keysym) { keysym = keysymToAscii[i].ascii; break; @@ -380,7 +380,7 @@ void win32::SKeyboard::keyEvent(rdr::U32 keysym, bool down) if (deadKeyAware) { // Detect dead chars and generate the dead char followed by space so // that we'll end up with the original char. - for (int i = 0; i < deadChars.size(); i++) { + for (unsigned int i = 0; i < deadChars.size(); i++) { if (keysym == deadChars[i]) { SHORT dc = VkKeyScan(keysym); if (dc != -1) { @@ -402,11 +402,11 @@ void win32::SKeyboard::keyEvent(rdr::U32 keysym, bool down) if (s == -1) { if (down) { // not a single keypress - try synthesizing dead chars. - for (int j = 0; + for (unsigned int j = 0; j < sizeof(latin1ToDeadChars) / sizeof(latin1ToDeadChars_t); j++) { if (keysym == latin1ToDeadChars[j].latin1Char) { - for (int i = 0; i < deadChars.size(); i++) { + for (unsigned int i = 0; i < deadChars.size(); i++) { if (deadChars[i] == latin1ToDeadChars[j].deadChar) { SHORT dc = VkKeyScan(latin1ToDeadChars[j].deadChar); SHORT bc = VkKeyScan(latin1ToDeadChars[j].baseChar); |