From 7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 21 Jun 2014 18:33:31 +0200 Subject: CGE2: Avoid some signed/unsigned comparisons --- engines/cge2/vmenu.cpp | 6 +++--- 1 file 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 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 list) { VMenu::~VMenu() { _addr = nullptr; - for (int i = 0; i < _menu.size(); i++) { + for (uint i = 0; i < _menu.size(); i++) { delete _menu[i]; } } -- cgit v1.2.3