diff options
author | Eugene Sandulenko | 2016-02-14 15:25:44 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:25 +0100 |
commit | 499519fec3820d5f5ad377953560c321ac3efcab (patch) | |
tree | 396f8eeab07609528544f72d4c7337cccd0d0d65 /engines/wage/gui.cpp | |
parent | eef56e167e481e413bd4c616e7c915e834c74726 (diff) | |
download | scummvm-rg350-499519fec3820d5f5ad377953560c321ac3efcab.tar.gz scummvm-rg350-499519fec3820d5f5ad377953560c321ac3efcab.tar.bz2 scummvm-rg350-499519fec3820d5f5ad377953560c321ac3efcab.zip |
WAGE: Fix int/uint comparison
Diffstat (limited to 'engines/wage/gui.cpp')
-rw-r--r-- | engines/wage/gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 5267e4ee5d..f7196abf17 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -501,7 +501,7 @@ Designed *Gui::mouseUp(int x, int y) { bool cutAllowed = false; - if (_selectionStartY == _selectionEndY && _selectionStartY == _lines.size() - 1) + if (_selectionStartY == _selectionEndY && _selectionStartY == (int)_lines.size() - 1) cutAllowed = true; _menu->enableCommand(kMenuEdit, kMenuActionCut, cutAllowed); @@ -545,7 +545,7 @@ void Gui::mouseDown(int x, int y) { int Gui::calcTextX(int x, int textLine) { const Graphics::Font *font = getConsoleFont(); - if (textLine >= _lines.size()) + if ((uint)textLine >= _lines.size()) return 0; Common::String str = _lines[textLine]; |