[Orxonox-commit 3251] r7942 - code/branches/kicklib/src/libraries/core/input

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Feb 21 02:37:57 CET 2011


Author: rgrieder
Date: 2011-02-21 02:37:56 +0100 (Mon, 21 Feb 2011)
New Revision: 7942

Modified:
   code/branches/kicklib/src/libraries/core/input/KeyBinder.cc
Log:
Fixed GCC warning (unsigned/signed mismatch).

Modified: code/branches/kicklib/src/libraries/core/input/KeyBinder.cc
===================================================================
--- code/branches/kicklib/src/libraries/core/input/KeyBinder.cc	2011-02-20 21:49:06 UTC (rev 7941)
+++ code/branches/kicklib/src/libraries/core/input/KeyBinder.cc	2011-02-21 01:37:56 UTC (rev 7942)
@@ -395,7 +395,7 @@
             Button* button = it->second;
 
             // iterate over all modes
-            for (size_t mode_index = 0; mode_index < 3; ++mode_index)
+            for (int mode_index = 0; mode_index < 3; ++mode_index)
             {
                 if (mode_index == new_mode) // skip commands that are already in the desired mode
                     continue;




More information about the Orxonox-commit mailing list