From e600c34852b3cd4eb8d3f7004d082a4298415cb1 Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Thu, 16 Dec 2010 13:47:39 +0000 Subject: [PATCH] changed ints to size_t for psp compilation warnings. --- projects/mtg/src/MTGAbility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 33ccba4dd..a6bb5404c 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -708,7 +708,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG string thises[] = { "this(", "thisforeach(" }; found = string::npos; int i = -1; - for (int j = 0; j < thises->length(); ++j) + for (size_t j = 0; j < thises->length(); ++j) { size_t found2 = s.find(thises[j]); if (found2 != string::npos && ((found == string::npos) || found2 < found)) @@ -792,7 +792,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG string lords[] = { "lord(", "foreach(", "aslongas(", "teach(", "all(" }; found = string::npos; i = -1; - for (int j = 0; j < lords->length(); ++j) + for (size_t j = 0; j < lords->length(); ++j) { size_t found2 = s.find(lords[j]); if (found2 != string::npos && ((found == string::npos) || found2 < found))