diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index fee333bf4f..a7488bd83c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3242,7 +3242,8 @@ cmPolicies::PolicyStatus cmMakefile bool done = false; // check our policy stack first - for (vecpos = this->PolicyStack.size(); vecpos >= 0 && !done; vecpos--) + for (vecpos = static_cast(this->PolicyStack.size()); + vecpos >= 0 && !done; vecpos--) { mappos = this->PolicyStack[vecpos].find(id); if (mappos != this->PolicyStack[vecpos].end())