aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-06-21 18:33:31 +0200
committerStrangerke2014-06-21 18:33:31 +0200
commit7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc (patch)
tree32a3254933bda1649c95d6be6b6326fba3e87f8e
parente708c1e5cd14e1eed2f9e68ff4335cdd00b93f20 (diff)
downloadscummvm-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.cpp6
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];
}
}