llvm.org GIT mirror llvm / 9812b90
Fix sign compare warning in unit test by using an explicit unsigned literal suffix git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297674 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
257257 TEST(STLExtrasTest, ToVector) {
258258 std::vector v = {'a', 'b', 'c'};
259259 auto Enumerated = to_vector<4>(enumerate(v));
260 ASSERT_EQ(3, Enumerated.size());
260 ASSERT_EQ(3u, Enumerated.size());
261261 for (size_t I = 0; I < v.size(); ++I) {
262262 EXPECT_EQ(I, Enumerated[I].index());
263263 EXPECT_EQ(v[I], Enumerated[I].value());