[ASTImporter] Changed constant int to unsigned int in test code.
authorBalazs Keri <1.int32@gmail.com>
Mon, 16 Jul 2018 14:05:18 +0000 (14:05 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 16 Jul 2018 14:05:18 +0000 (14:05 +0000)
llvm-svn: 337172

clang/unittests/AST/ASTImporterTest.cpp

index 8aff6b5df9a809c09373462162bc2aa601077d2a..cc8ed92faa8668611ecbc61c2d5ea5671ab2ed24 100644 (file)
@@ -2378,7 +2378,7 @@ private:
     auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(
         ToTU, ClassMatcher);
 
-    ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 1);
+    ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 1u);
 
     {
       CXXMethodDecl *Method =
@@ -2386,7 +2386,7 @@ private:
       ToClass->removeDecl(Method);
     }
 
-    ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 0);
+    ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 0u);
 
     Decl *ImportedClass = nullptr;
     {