From 6ac5b73a90827d85f415070d7c1fed44c338c44a Mon Sep 17 00:00:00 2001 From: Peter Åstrand Date: Wed, 10 Feb 2010 07:22:55 +0000 Subject: 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 --- win/rfb_win32/CKeyboard.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3