[llvm] r227158 - Fix unsigned/signed comparison warning.
Eric Christopher
echristo at gmail.com
Mon Jan 26 17:01:39 PST 2015
Author: echristo
Date: Mon Jan 26 19:01:39 2015
New Revision: 227158
URL: http://llvm.org/viewvc/llvm-project?rev=227158&view=rev
Log:
Fix unsigned/signed comparison warning.
Modified:
llvm/trunk/unittests/Support/ConvertUTFTest.cpp
Modified: llvm/trunk/unittests/Support/ConvertUTFTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ConvertUTFTest.cpp?rev=227158&r1=227157&r2=227158&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ConvertUTFTest.cpp (original)
+++ llvm/trunk/unittests/Support/ConvertUTFTest.cpp Mon Jan 26 19:01:39 2015
@@ -46,7 +46,7 @@ TEST(ConvertUTFTest, ConvertUTF8ToUTF16S
bool Success = convertUTF8ToUTF16String(Ref, Result);
EXPECT_TRUE(Success);
static const UTF16 Expected[] = {0x0CA0, 0x005f, 0x0CA0, 0};
- ASSERT_EQ(3, Result.size());
+ ASSERT_EQ(3u, Result.size());
for (int I = 0, E = 3; I != E; ++I)
EXPECT_EQ(Expected[I], Result[I]);
}
More information about the llvm-commits
mailing list