BUG: bad loop index unsigned compared to zero

This commit is contained in:
Ken Martin 2008-03-01 16:21:41 -05:00
parent d7db2d086c
commit 6f6b80fded
1 changed files with 2 additions and 1 deletions

View File

@ -3238,8 +3238,9 @@ cmPolicies::PolicyStatus cmMakefile
{
cmPolicies::PolicyStatus status = cmPolicies::REQUIRED_IF_USED;
PolicyMap::iterator mappos;
unsigned int vecpos;
int vecpos;
bool done = false;
// check our policy stack first
for (vecpos = this->PolicyStack.size(); vecpos >= 0 && !done; vecpos--)
{