forked from OSchip/llvm-project
Silence a sign compare warning that only occurs on 32 bit platforms.
llvm-svn: 162168
This commit is contained in:
parent
8eba46c68a
commit
a95b3ffe8f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue