Преглед на файлове

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