[llvm-commits] [llvm] r92359 - /llvm/trunk/unittests/ADT/StringRefTest.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Dec 31 08:27:14 PST 2009
Author: d0k
Date: Thu Dec 31 10:27:13 2009
New Revision: 92359
URL: http://llvm.org/viewvc/llvm-project?rev=92359&view=rev
Log:
Silence compiler warning.
warning: comparison between signed and unsigned integer expressions
Modified:
llvm/trunk/unittests/ADT/StringRefTest.cpp
Modified: llvm/trunk/unittests/ADT/StringRefTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/StringRefTest.cpp?rev=92359&r1=92358&r2=92359&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/StringRefTest.cpp (original)
+++ llvm/trunk/unittests/ADT/StringRefTest.cpp Thu Dec 31 10:27:13 2009
@@ -249,7 +249,7 @@
TEST(StringRefTest, EditDistance) {
StringRef Str("hello");
- EXPECT_EQ(2, Str.edit_distance("hill"));
+ EXPECT_EQ(2U, Str.edit_distance("hill"));
}
TEST(StringRefTest, Misc) {
More information about the llvm-commits
mailing list