diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-18 10:33:09 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-18 10:33:09 +0000 |
commit | 217c484522926f9fc664ec3bfaf3cffe456244b0 (patch) | |
tree | 10a61b5ccccf721d8452c511d3b6362c20b58d30 | |
parent | 54c86f746f9e4431fa3855fe7a92c6827a357e85 (diff) |
Silence a sign compare warning that only occurs on 32 bit platforms.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162168 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/ASTMatchers/ASTMatchers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 55f0772bd8..e8c679412e 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -1361,7 +1361,7 @@ AST_POLYMORPHIC_MATCHER_P2( /// declCountIs(2) /// matches 'int a, b;' and 'int d = 2, e;', but not 'int c;'. AST_MATCHER_P(DeclStmt, declCountIs, unsigned, N) { - return std::distance(Node.decl_begin(), Node.decl_end()) == N; + return std::distance(Node.decl_begin(), Node.decl_end()) == (ptrdiff_t)N; } /// \brief Matches the n'th declaration of a declaration statement. |