From 72df9ba01a26b7ad3ad7b07ced19382805f32b93 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 1 Feb 2020 17:09:15 +0100 Subject: [PATCH] Make iterator in test use size_t instead of int --- tests/ScriptTests/ScriptTypeTests/Battle/PokemonTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ScriptTests/ScriptTypeTests/Battle/PokemonTests.cpp b/tests/ScriptTests/ScriptTypeTests/Battle/PokemonTests.cpp index c1a49b5..da0dbea 100644 --- a/tests/ScriptTests/ScriptTypeTests/Battle/PokemonTests.cpp +++ b/tests/ScriptTests/ScriptTypeTests/Battle/PokemonTests.cpp @@ -235,7 +235,7 @@ TEST_CASE("Validate Pokemon GetTypes in Script") { .WithForme("default") ->WithGender(CreatureLib::Library::Gender::Male) ->Build(); - for (auto i = 0; i < mon->GetTypes().size(); i++){ + for (size_t i = 0; i < mon->GetTypes().size(); i++){ auto data = GetScript(mainLib, "testType"); data.Context->SetArgObject(0, const_cast(mon));