diff --git a/unittests/ADT/SmallMapTest.cpp b/unittests/ADT/SmallMapTest.cpp index 10ba0ef2bfb..5729717e0f2 100644 --- a/unittests/ADT/SmallMapTest.cpp +++ b/unittests/ADT/SmallMapTest.cpp @@ -149,7 +149,7 @@ TEST(SmallMapTest, GeneralTest) { SmallMap d; d[0] = 2; d[1] = 3; - unsigned counts[2] = { 0, 0 }; + int counts[2] = { 0, 0 }; for (SmallMap::iterator I = d.begin(), E = d.end(); I != E; ++I) { EXPECT_TRUE(I->first == 0 || I->first == 1);