summaryrefslogtreecommitdiff
path: root/src/guichan/focushandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/focushandler.cpp')
-rw-r--r--src/guichan/focushandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guichan/focushandler.cpp b/src/guichan/focushandler.cpp
index 839c35cc1..393c08880 100644
--- a/src/guichan/focushandler.cpp
+++ b/src/guichan/focushandler.cpp
@@ -235,7 +235,7 @@ namespace gcn
-- i;
if (focusedWidget <= 0)
- focusedWidget = mWidgets.size() - 1;
+ focusedWidget = static_cast<int>(mWidgets.size() - 1);
if (focusedWidget == focused)
return;
@@ -433,7 +433,7 @@ namespace gcn
-- i;
if (focusedWidget <= 0)
- focusedWidget = mWidgets.size() - 1;
+ focusedWidget = static_cast<int>(mWidgets.size() - 1);
if (focusedWidget == focused)
return;