Fixe size type cast (sized-unsized) in EscapeShellArg()
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Fri, 9 Feb 2018 16:05:58 +0000 (19:05 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Fri, 23 Mar 2018 13:49:18 +0000 (16:49 +0300)
src/debug/netcoredbg/manageddebugger.cpp

index ad5cc5110d8314c227a771bf9c579acfec428c38..f97bfc94be010e959a48e4ad930cbac49f7d27d1 100644 (file)
@@ -951,9 +951,9 @@ static std::string EscapeShellArg(const std::string &arg)
 {
     std::string s(arg);
 
-    for (std::size_t i = 0; i < s.size(); ++i)
+    for (std::string::size_type i = 0; i < s.size(); ++i)
     {
-        int count = 0;
+        std::string::size_type count = 0;
         char c = s.at(i);
         switch (c)
         {