浏览代码

COMP: explicitely cast to int to silence warning with msvc8

Alex
Alexander Neundorf 18 年之前
父节点
当前提交
fc9f19b202
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmMakefile.cxx

+ 1 - 1
Source/cmMakefile.cxx

@@ -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);