[llvm] r297674 - Fix sign compare warning in unit test by using an explicit unsigned literal suffix
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 14:46:12 PDT 2017
Author: dblaikie
Date: Mon Mar 13 16:46:12 2017
New Revision: 297674
URL: http://llvm.org/viewvc/llvm-project?rev=297674&view=rev
Log:
Fix sign compare warning in unit test by using an explicit unsigned literal suffix
Modified:
llvm/trunk/unittests/ADT/STLExtrasTest.cpp
Modified: llvm/trunk/unittests/ADT/STLExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/STLExtrasTest.cpp?rev=297674&r1=297673&r2=297674&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/STLExtrasTest.cpp (original)
+++ llvm/trunk/unittests/ADT/STLExtrasTest.cpp Mon Mar 13 16:46:12 2017
@@ -258,7 +258,7 @@ TEST(STLExtrasTest, CountAdaptor) {
TEST(STLExtrasTest, ToVector) {
std::vector<char> v = {'a', 'b', 'c'};
auto Enumerated = to_vector<4>(enumerate(v));
- ASSERT_EQ(3, Enumerated.size());
+ ASSERT_EQ(3u, Enumerated.size());
for (size_t I = 0; I < v.size(); ++I) {
EXPECT_EQ(I, Enumerated[I].index());
EXPECT_EQ(v[I], Enumerated[I].value());
More information about the llvm-commits
mailing list