Переглянути джерело

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

David Cole 17 роки тому
батько
коміт
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);