[clang] 43e7ba6 - Fix signed/unsigned comparison warning

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 03:53:19 PDT 2022


Author: Simon Pilgrim
Date: 2022-06-15T11:53:08+01:00
New Revision: 43e7ba6495359bcc14580725468e7736e97edcc6

URL: https://github.com/llvm/llvm-project/commit/43e7ba6495359bcc14580725468e7736e97edcc6
DIFF: https://github.com/llvm/llvm-project/commit/43e7ba6495359bcc14580725468e7736e97edcc6.diff

LOG: Fix signed/unsigned comparison warning

Added: 
    

Modified: 
    clang/unittests/AST/AttrTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/AttrTest.cpp b/clang/unittests/AST/AttrTest.cpp
index 518f995ed104b..500e9cfa528b7 100644
--- a/clang/unittests/AST/AttrTest.cpp
+++ b/clang/unittests/AST/AttrTest.cpp
@@ -111,7 +111,7 @@ TEST(Attr, AnnotateType) {
     EXPECT_EQ(match(constantExpr(has(integerLiteral(equals(2u)).bind("int"))),
                     *Annotate->args_begin()[1], AST->getASTContext())
                   .size(),
-              1);
+              1u);
 
     // Second parameter.
     BuiltinTypeLoc IntTL;


        


More information about the cfe-commits mailing list