Skip to content

Commit 1784fe7

Browse files
committed
[Clang] Fix signed-unsigned comparison warning that breaks the ppc64 build.
1 parent 8f9d73f commit 1784fe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/unittests/AST/AttrTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ TEST(Attr, AnnotateType) {
102102
AssertAnnotatedAs(PointerTL.getPointeeLoc(), "foo", PointerPointerTL,
103103
&Annotate);
104104

105-
EXPECT_EQ(Annotate->args_size(), 2);
105+
EXPECT_EQ(Annotate->args_size(), 2u);
106106
const auto *StringLit = selectFirst<StringLiteral>(
107107
"str", match(constantExpr(hasDescendant(stringLiteral().bind("str"))),
108108
*Annotate->args_begin()[0], AST->getASTContext()));
109109
ASSERT_NE(StringLit, nullptr);
110110
EXPECT_EQ(StringLit->getString(), "arg1");
111-
EXPECT_EQ(match(constantExpr(has(integerLiteral(equals(2)).bind("int"))),
111+
EXPECT_EQ(match(constantExpr(has(integerLiteral(equals(2u)).bind("int"))),
112112
*Annotate->args_begin()[1], AST->getASTContext())
113113
.size(),
114114
1);

0 commit comments

Comments
 (0)