BUG: fix insert for 64 bit

This commit is contained in:
Bill Hoffman 2005-04-13 09:54:37 -04:00
parent 743ab3a05f
commit 3778d89cb9
2 changed files with 4 additions and 4 deletions

View File

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

View File

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