aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 07:22:55 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 07:22:55 +0000
commit6ac5b73a90827d85f415070d7c1fed44c338c44a (patch)
treefebfb7a9f28729d10130bbc17b6c6b6e3f75f943
parent96a56f29371c1276620d6a58c463700468c2c42d (diff)
downloadtigervnc-6ac5b73a90827d85f415070d7c1fed44c338c44a.tar.gz
tigervnc-6ac5b73a90827d85f415070d7c1fed44c338c44a.zip
Eliminate GCC signed/unsigned warning. sizeof returns unsigned.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3965 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--win/rfb_win32/CKeyboard.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/CKeyboard.cxx b/win/rfb_win32/CKeyboard.cxx
index f2cda7e2..ee5b85eb 100644
--- a/win/rfb_win32/CKeyboard.cxx
+++ b/win/rfb_win32/CKeyboard.cxx
@@ -40,7 +40,7 @@ class CKeymapper {
public:
CKeymapper()
{
- for (int i = 0; i < sizeof(keymap) / sizeof(keymap_t); i++) {
+ for (unsigned int i = 0; i < sizeof(keymap) / sizeof(keymap_t); i++) {
int extendedVkey = keymap[i].vk + (keymap[i].extended ? 256 : 0);
if (keysymMap.find(extendedVkey) == keysymMap.end()) {
keysymMap[extendedVkey] = keymap[i].keysym;