Fix a signed/unsigned warning promoted to error.

This commit is contained in:
Eric Christopher 2020-02-18 17:49:22 -08:00
parent a82b63a741
commit 28728bf06f
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static bool checkParamDeclOfAncestorCallExprHasRValueRefType(
if (const clang::CallExpr *TheCallExpr =
tryGetCallExprAncestorForCxxConstructExpr(TheCxxConstructExpr,
Context)) {
for (int i = 0; i < TheCallExpr->getNumArgs(); ++i) {
for (unsigned i = 0; i < TheCallExpr->getNumArgs(); ++i) {
const Expr *Arg = TheCallExpr->getArg(i);
if (Arg->getSourceRange() == TheCxxConstructExpr->getSourceRange()) {
if (const auto *TheCallExprFuncProto =