[llvm-commits] [llvm] r156812 - /llvm/trunk/unittests/ADT/SmallMapTest.cpp
Bill Wendling
isanbard at gmail.com
Tue May 15 02:59:14 PDT 2012
Author: void
Date: Tue May 15 04:59:13 2012
New Revision: 156812
URL: http://llvm.org/viewvc/llvm-project?rev=156812&view=rev
Log:
Remove warning about testing unsigned int with int.
Modified:
llvm/trunk/unittests/ADT/SmallMapTest.cpp
Modified: llvm/trunk/unittests/ADT/SmallMapTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/SmallMapTest.cpp?rev=156812&r1=156811&r2=156812&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/SmallMapTest.cpp (original)
+++ llvm/trunk/unittests/ADT/SmallMapTest.cpp Tue May 15 04:59:13 2012
@@ -149,7 +149,7 @@
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);
More information about the llvm-commits
mailing list