Silence a sign compare warning that only occurs on 32 bit platforms.

llvm-svn: 162168
This commit is contained in:
Benjamin Kramer 2012-08-18 10:33:09 +00:00
parent 8eba46c68a
commit a95b3ffe8f
1 changed files with 1 additions and 1 deletions

View File

@ -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.