Parser.test.cpp: auto (int) -> size_t

This commit is contained in:
Varun Saini 2024-11-15 13:15:39 -08:00
parent ebd074803f
commit 4709fec28c

View file

@ -3735,7 +3735,7 @@ TEST_CASE_FIXTURE(Fixture, "complex_union_in_generic_ty")
CHECK_EQ(unionTy->types.size, 3);
// NOTE: These are `const char*` so we can compare them to `AstName`s later.
std::vector<const char*> expectedTypes{"number", "boolean", "string"};
for (auto i = 0; i < expectedTypes.size(); i++)
for (size_t i = 0; i < expectedTypes.size(); i++)
{
auto ty = unionTy->types.data[i]->as<AstTypeReference>();
LUAU_ASSERT(ty);