[Orxonox-commit 3267] r7958 - code/trunk/src/libraries/core/input

dafrick at orxonox.net dafrick at orxonox.net
Thu Feb 24 22:56:44 CET 2011


Author: dafrick
Date: 2011-02-24 22:56:43 +0100 (Thu, 24 Feb 2011)
New Revision: 7958

Modified:
   code/trunk/src/libraries/core/input/KeyBinder.cc
Log:
Fixed a warning.


Modified: code/trunk/src/libraries/core/input/KeyBinder.cc
===================================================================
--- code/trunk/src/libraries/core/input/KeyBinder.cc	2011-02-24 15:15:06 UTC (rev 7957)
+++ code/trunk/src/libraries/core/input/KeyBinder.cc	2011-02-24 21:56:43 UTC (rev 7958)
@@ -397,7 +397,7 @@
             // iterate over all modes
             for (size_t mode_index = 0; mode_index < 3; ++mode_index)
             {
-                if (mode_index == new_mode) // skip commands that are already in the desired mode
+                if (mode_index == (unsigned int)new_mode) // skip commands that are already in the desired mode
                     continue;
 
                 // iterate over all commands of the given mode at the given button




More information about the Orxonox-commit mailing list