summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-13 13:54:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-13 13:54:37 (GMT)
commit3778d89cb907b9283c86a0e74be8dd4b9118ba5e (patch)
treeaeaaafbebdc5f3eff8a193ef0f29b5ce8b4d12ce
parent743ab3a05f0f73a5e01429feea1b1e5e3a423d8a (diff)
downloadCMake-3778d89cb907b9283c86a0e74be8dd4b9118ba5e.zip
CMake-3778d89cb907b9283c86a0e74be8dd4b9118ba5e.tar.gz
CMake-3778d89cb907b9283c86a0e74be8dd4b9118ba5e.tar.bz2
BUG: fix insert for 64 bit
-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;