aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-05-15 09:59:13 +0000
committerBill Wendling <isanbard@gmail.com>2012-05-15 09:59:13 +0000
commitfc6fd994ab29e73f2b4b18a3eb79f1134c07d044 (patch)
tree901991d9a824e1b20a8896aedc144f4af9f06eea
parent661f760320e8b8e9bd44016585648bb1941b1584 (diff)
Remove warning about testing unsigned int with int.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156812 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/ADT/SmallMapTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ADT/SmallMapTest.cpp b/unittests/ADT/SmallMapTest.cpp
index 10ba0ef2bf..5729717e0f 100644
--- a/unittests/ADT/SmallMapTest.cpp
+++ b/unittests/ADT/SmallMapTest.cpp
@@ -149,7 +149,7 @@ TEST(SmallMapTest, GeneralTest) {
SmallMap<int, int, 8> d;
d[0] = 2;
d[1] = 3;
- unsigned counts[2] = { 0, 0 };
+ int counts[2] = { 0, 0 };
for (SmallMap<int, int, 8>::iterator I = d.begin(), E = d.end(); I != E;
++I) {
EXPECT_TRUE(I->first == 0 || I->first == 1);