aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rennie <renniej@ratix.(none)>2011-06-03 11:18:25 +0100
committerJohn Rennie <renniej@ratix.(none)>2011-06-03 11:18:25 +0100
commit14e7a4132059bb04c86b66e12ad64b706de34d73 (patch)
treebd6faca69702c57c47f4a1ceff3d301cfac92852
parent6eeb370aa917e8af8bf1f68f1a8a22ae781d0f67 (diff)
Correct signed/unsigned warnings in ButtonTranslator.cpp
-rw-r--r--xbmc/input/ButtonTranslator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/input/ButtonTranslator.cpp b/xbmc/input/ButtonTranslator.cpp
index 60adef8f62..90a0b4a6f0 100644
--- a/xbmc/input/ButtonTranslator.cpp
+++ b/xbmc/input/ButtonTranslator.cpp
@@ -1180,9 +1180,7 @@ uint32_t CButtonTranslator::TranslateMouseCommand(const char *szButton)
CStdString strMouseCommand = szButton;
strMouseCommand.ToLower();
- int j = sizeof(mousecommands)/sizeof(mousecommands[0]);
-
- for (int i = 0; i < sizeof(mousecommands)/sizeof(mousecommands[0]); i++)
+ for (unsigned int i = 0; i < sizeof(mousecommands)/sizeof(mousecommands[0]); i++)
if (strMouseCommand.Equals(mousecommands[i].name))
return mousecommands[i].action | KEY_MOUSE;