Преглед изворни кода

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