mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
COMP: explicitely cast to int to silence warning with msvc8
Alex
This commit is contained in:
@@ -1497,7 +1497,7 @@ void cmMakefile::AddSourceGroup(const std::vector<std::string>& name,
|
||||
cmSourceGroup* sg = 0;
|
||||
std::vector<std::string> currentName;
|
||||
int i = 0;
|
||||
const int lastElement = name.size()-1;
|
||||
const int lastElement = static_cast<int>(name.size()-1);
|
||||
for(i=lastElement; i>=0; --i)
|
||||
{
|
||||
currentName.assign(name.begin(), name.begin()+i+1);
|
||||
|
||||
Reference in New Issue
Block a user