[cfe-commits] r57201 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 6 13:35:04 PDT 2008
Author: kremenek
Date: Mon Oct 6 15:35:04 2008
New Revision: 57201
URL: http://llvm.org/viewvc/llvm-project?rev=57201&view=rev
Log:
Use "unsigned" instead of "int" for i to remove a "comparison between unsigned and signed" warning (potential integer overflow).
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=57201&r1=57200&r2=57201&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Oct 6 15:35:04 2008
@@ -564,7 +564,7 @@
// 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;
}
More information about the cfe-commits
mailing list