diff options
author | Strangerke | 2014-06-21 18:33:31 +0200 |
---|---|---|
committer | Strangerke | 2014-06-21 18:33:31 +0200 |
commit | 7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc (patch) | |
tree | 32a3254933bda1649c95d6be6b6326fba3e87f8e | |
parent | e708c1e5cd14e1eed2f9e68ff4335cdd00b93f20 (diff) | |
download | scummvm-rg350-7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc.tar.gz scummvm-rg350-7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc.tar.bz2 scummvm-rg350-7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc.zip |
CGE2: Avoid some signed/unsigned comparisons
-rw-r--r-- | engines/cge2/vmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge2/vmenu.cpp b/engines/cge2/vmenu.cpp index 55ddc2aec0..a2f2f05389 100644 --- a/engines/cge2/vmenu.cpp +++ b/engines/cge2/vmenu.cpp @@ -95,14 +95,14 @@ char *VMenu::vmGather(Common::Array<Choice *> list) { int len = 0; int h = 0; - for (int i = 0; i < list.size(); i++) { + for (uint i = 0; i < list.size(); i++) { len += strlen(list[i]->_text); ++h; } _vmgt = new char[len + h]; if (_vmgt) { *_vmgt = '\0'; - for (int i = 0; i < list.size(); i++) { + for (uint i = 0; i < list.size(); i++) { if (*_vmgt) strcat(_vmgt, "|"); strcat(_vmgt, list[i]->_text); @@ -116,7 +116,7 @@ char *VMenu::vmGather(Common::Array<Choice *> list) { VMenu::~VMenu() { _addr = nullptr; - for (int i = 0; i < _menu.size(); i++) { + for (uint i = 0; i < _menu.size(); i++) { delete _menu[i]; } } |