From: Bjorn Pettersson Date: Fri, 19 Apr 2019 09:10:42 +0000 (+0000) Subject: [LibTooling] Fix -Wsign-compare after r358697 X-Git-Tag: llvmorg-10-init~7467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18b0442560cc4dc00ac60987b1c892f4c86e5f25;p=platform%2Fupstream%2Fllvm.git [LibTooling] Fix -Wsign-compare after r358697 llvm-svn: 358745 --- diff --git a/clang/unittests/Tooling/TransformerTest.cpp b/clang/unittests/Tooling/TransformerTest.cpp index b35c195..6cc2c79e 100644 --- a/clang/unittests/Tooling/TransformerTest.cpp +++ b/clang/unittests/Tooling/TransformerTest.cpp @@ -369,7 +369,7 @@ TEST_F(TransformerTest, OverlappingEditsInRule) { // The rewrite process fails... EXPECT_TRUE(rewrite(Input)); // ... but one AtomicChange was consumed: - ASSERT_EQ(Changes.size(), 1); + ASSERT_EQ(Changes.size(), 1u); EXPECT_TRUE(Changes[0].hasError()); } @@ -384,7 +384,7 @@ TEST_F(TransformerTest, OverlappingEditsMultipleMatches) { // The rewrite process fails because the changes conflict with each other... EXPECT_FALSE(rewrite(Input)); // ... but all changes are (individually) fine: - ASSERT_EQ(Changes.size(), 2); + ASSERT_EQ(Changes.size(), 2u); EXPECT_FALSE(Changes[0].hasError()); EXPECT_FALSE(Changes[1].hasError()); }