Use "unsigned" instead of "int" for i to remove a "comparison between unsigned and signed" warning (potential integer overflow).

llvm-svn: 57201
This commit is contained in:
Ted Kremenek 2008-10-06 20:35:04 +00:00
parent ca2271af10
commit 7c2d69f007
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ void Sema::AddCXXDirectInitializerToDecl(DeclTy *Dcl, SourceLocation LParenLoc,
// If there is no declaration, there was an error parsing it. Just ignore
// the initializer.
if (RealDecl == 0) {
for (int i=0; i != NumExprs; ++i)
for (unsigned i = 0; i != NumExprs; ++i)
delete static_cast<Expr *>(ExprTys[i]);
return;
}