summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
-rw-r--r--Source/kwsys/SystemTools.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 6796b21..f92bbb0 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -545,8 +545,8 @@ void cmLocalVisualStudio7Generator::FillFlagMapFromCommandFlags(
{
option.reserve(strlen(flagTable->commandFlag+2));
// first do the - version
- option.insert(static_cast<unsigned int>(0),
- static_cast<unsigned int>(1),
+ option.insert(static_cast<std::string::size_type>(0),
+ static_cast<std::string::size_type>(1),
'-');
option.append(flagTable->commandFlag);
while(flags.find(option) != flags.npos)
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 5ecc559..9587831 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1296,8 +1296,8 @@ kwsys_stl::string SystemTools::ConvertToWindowsOutputPath(const char* path)
if(ret.find(' ') != kwsys_stl::string::npos
&& ret[0] != '\"')
{
- ret.insert(static_cast<unsigned int>(0),
- static_cast<unsigned int>(1), '\"');
+ ret.insert(static_cast<kwsys_stl::string::size_type>(0),
+ static_cast<kwsys_stl::string::size_type>(1), '\"');
ret.append(1, '\"');
}
return ret;