]> granicus.if.org Git - clang/commitdiff
Use "unsigned" instead of "int" for i to remove a "comparison between unsigned and...
authorTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 20:35:04 +0000 (20:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 20:35:04 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57201 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index d8f1b05be6db0a44b8f96f52573cf31248a471a9..edc0a3db6fb7bd36e6fb989ec9e830af1b98c81d 100644 (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;
   }