diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp index 8aff6b5df9a8..cc8ed92faa86 100644 --- a/clang/unittests/AST/ASTImporterTest.cpp +++ b/clang/unittests/AST/ASTImporterTest.cpp @@ -2378,7 +2378,7 @@ private: auto *ToClass = FirstDeclMatcher().match( ToTU, ClassMatcher); - ASSERT_EQ(DeclCounter().match(ToClass, MethodMatcher), 1); + ASSERT_EQ(DeclCounter().match(ToClass, MethodMatcher), 1u); { CXXMethodDecl *Method = @@ -2386,7 +2386,7 @@ private: ToClass->removeDecl(Method); } - ASSERT_EQ(DeclCounter().match(ToClass, MethodMatcher), 0); + ASSERT_EQ(DeclCounter().match(ToClass, MethodMatcher), 0u); Decl *ImportedClass = nullptr; {