aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-06 23:39:35 +0100
committerEugene Sandulenko2016-01-06 23:39:35 +0100
commitfdfb4eedcd438096d0ec45ea055be2da465dd437 (patch)
treed3eda68d299de82c77058a058eb751c638786760
parentb28dc762df03662bee8c43e7fbd7472132dcd333 (diff)
downloadscummvm-rg350-fdfb4eedcd438096d0ec45ea055be2da465dd437.tar.gz
scummvm-rg350-fdfb4eedcd438096d0ec45ea055be2da465dd437.tar.bz2
scummvm-rg350-fdfb4eedcd438096d0ec45ea055be2da465dd437.zip
WAGE: More warning fixes
-rw-r--r--engines/wage/gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index d4eb2b041a..a50c4856bb 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -230,7 +230,7 @@ void Gui::appendText(String &str) {
// and push substrings individually
Common::String tmp = "";
- for (int i = 0; i < str.size(); i++) {
+ for (uint i = 0; i < str.size(); i++) {
if (str[i] == '\n') {
_out.push_back(tmp);
flowText(tmp);
@@ -432,7 +432,7 @@ void Gui::flowText(String &str) {
for (Common::StringArray::const_iterator j = wrappedLines.begin(); j != wrappedLines.end(); ++j)
_lines.push_back(*j);
- int pos = _scrollPos;
+ uint pos = _scrollPos;
_scrollPos = MAX<int>(0, (_lines.size() - _consoleNumLines) * _consoleLineHeight);
_cursorX = kConWPadding;
@@ -481,7 +481,7 @@ void Gui::renderConsole(Graphics::Surface *g, Common::Rect &r) {
if (textReflow) {
_lines.clear();
- for (int i = 0; i < _out.size(); i++)
+ for (uint i = 0; i < _out.size(); i++)
flowText(_out[i]);
}