[llvm] r299873 - Fix signed / unsigned comparison warnings.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 13:01:51 PDT 2017
Author: zturner
Date: Mon Apr 10 15:01:50 2017
New Revision: 299873
URL: http://llvm.org/viewvc/llvm-project?rev=299873&view=rev
Log:
Fix signed / unsigned comparison warnings.
Modified:
llvm/trunk/unittests/ADT/BitVectorTest.cpp
Modified: llvm/trunk/unittests/ADT/BitVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/BitVectorTest.cpp?rev=299873&r1=299872&r2=299873&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/BitVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/BitVectorTest.cpp Mon Apr 10 15:01:50 2017
@@ -211,12 +211,12 @@ TYPED_TEST(BitVectorTest, FindOperations
EXPECT_EQ(-1, A.find_next_unset(99));
A.set(0, 100);
- EXPECT_EQ(100, A.count());
+ EXPECT_EQ(100U, A.count());
EXPECT_EQ(0, A.find_first());
EXPECT_EQ(-1, A.find_first_unset());
A.reset(0, 100);
- EXPECT_EQ(0, A.count());
+ EXPECT_EQ(0U, A.count());
EXPECT_EQ(-1, A.find_first());
EXPECT_EQ(0, A.find_first_unset());
}
More information about the llvm-commits
mailing list