[Lldb-commits] [lldb] r283651 - Fix compiler warnings in PlatformDarwinTest.cpp

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 7 21:03:15 PDT 2016


Author: labath
Date: Fri Oct  7 23:03:15 2016
New Revision: 283651

URL: http://llvm.org/viewvc/llvm-project?rev=283651&view=rev
Log:
Fix compiler warnings in PlatformDarwinTest.cpp

Modified:
    lldb/trunk/unittests/Platform/PlatformDarwinTest.cpp

Modified: lldb/trunk/unittests/Platform/PlatformDarwinTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Platform/PlatformDarwinTest.cpp?rev=283651&r1=283650&r2=283651&view=diff
==============================================================================
--- lldb/trunk/unittests/Platform/PlatformDarwinTest.cpp (original)
+++ lldb/trunk/unittests/Platform/PlatformDarwinTest.cpp Fri Oct  7 23:03:15 2016
@@ -23,34 +23,34 @@ TEST(PlatformDarwinTest, TestParseVersio
   llvm::StringRef D;
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("1.2.3 (test1)");
-  EXPECT_EQ(1, A);
-  EXPECT_EQ(2, B);
-  EXPECT_EQ(3, C);
+  EXPECT_EQ(1u, A);
+  EXPECT_EQ(2u, B);
+  EXPECT_EQ(3u, C);
   EXPECT_EQ("test1", D);
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("2.3 (test2)");
-  EXPECT_EQ(2, A);
-  EXPECT_EQ(3, B);
+  EXPECT_EQ(2u, A);
+  EXPECT_EQ(3u, B);
   EXPECT_EQ("test2", D);
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("3 (test3)");
-  EXPECT_EQ(3, A);
+  EXPECT_EQ(3u, A);
   EXPECT_EQ("test3", D);
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("1.2.3 (test");
-  EXPECT_EQ(1, A);
-  EXPECT_EQ(2, B);
-  EXPECT_EQ(3, C);
+  EXPECT_EQ(1u, A);
+  EXPECT_EQ(2u, B);
+  EXPECT_EQ(3u, C);
   EXPECT_EQ("test", D);
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("2.3.4 test");
-  EXPECT_EQ(2, A);
-  EXPECT_EQ(3, B);
-  EXPECT_EQ(4, C);
+  EXPECT_EQ(2u, A);
+  EXPECT_EQ(3u, B);
+  EXPECT_EQ(4u, C);
   EXPECT_EQ("", D);
 
   std::tie(A, B, C, D) = PlatformDarwin::ParseVersionBuildDir("3.4.5");
-  EXPECT_EQ(3, A);
-  EXPECT_EQ(4, B);
-  EXPECT_EQ(5, C);
-}
\ No newline at end of file
+  EXPECT_EQ(3u, A);
+  EXPECT_EQ(4u, B);
+  EXPECT_EQ(5u, C);
+}




More information about the lldb-commits mailing list