[llvm] r325402 - Silence an unsigned vs signed compare warning.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 14:46:45 PST 2018
Author: echristo
Date: Fri Feb 16 14:46:45 2018
New Revision: 325402
URL: http://llvm.org/viewvc/llvm-project?rev=325402&view=rev
Log:
Silence an unsigned vs signed compare warning.
Modified:
llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp?rev=325402&r1=325401&r2=325402&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp Fri Feb 16 14:46:45 2018
@@ -186,24 +186,24 @@ TEST(HashTableTest, NamedStreamMap) {
uint32_t N;
EXPECT_TRUE(NSM.get("One", N));
- EXPECT_EQ(1, N);
+ EXPECT_EQ(1U, N);
EXPECT_TRUE(NSM.get("Two", N));
- EXPECT_EQ(2, N);
+ EXPECT_EQ(2U, N);
EXPECT_TRUE(NSM.get("Three", N));
- EXPECT_EQ(3, N);
+ EXPECT_EQ(3U, N);
EXPECT_TRUE(NSM.get("Four", N));
- EXPECT_EQ(4, N);
+ EXPECT_EQ(4U, N);
EXPECT_TRUE(NSM.get("Five", N));
- EXPECT_EQ(5, N);
+ EXPECT_EQ(5U, N);
EXPECT_TRUE(NSM.get("Six", N));
- EXPECT_EQ(6, N);
+ EXPECT_EQ(6U, N);
EXPECT_TRUE(NSM.get("Seven", N));
- EXPECT_EQ(7, N);
+ EXPECT_EQ(7U, N);
} while (std::next_permutation(Streams.begin(), Streams.end()));
}
More information about the llvm-commits
mailing list