Просмотр исходного кода

COMP: Using the proper type for local variables can eliminate compiler warnings.

David Cole 17 лет назад
Родитель
Сommit
306d517e82
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
Source/cmSystemTools.cxx

@@ -1612,7 +1612,7 @@ void cmSystemTools::RestoreEnv(const std::vector<std::string>& env)
     {
     std::string var(*eit);
 
-    int pos = var.find("=");
+    std::string::size_type pos = var.find("=");
     if (pos != std::string::npos)
       {
       var = var.substr(0, pos);