BUG: fix insert for 64 bit
This commit is contained in:
parent
743ab3a05f
commit
3778d89cb9
@ -545,8 +545,8 @@ void cmLocalVisualStudio7Generator::FillFlagMapFromCommandFlags(
|
|||||||
{
|
{
|
||||||
option.reserve(strlen(flagTable->commandFlag+2));
|
option.reserve(strlen(flagTable->commandFlag+2));
|
||||||
// first do the - version
|
// first do the - version
|
||||||
option.insert(static_cast<unsigned int>(0),
|
option.insert(static_cast<std::string::size_type>(0),
|
||||||
static_cast<unsigned int>(1),
|
static_cast<std::string::size_type>(1),
|
||||||
'-');
|
'-');
|
||||||
option.append(flagTable->commandFlag);
|
option.append(flagTable->commandFlag);
|
||||||
while(flags.find(option) != flags.npos)
|
while(flags.find(option) != flags.npos)
|
||||||
|
@ -1296,8 +1296,8 @@ kwsys_stl::string SystemTools::ConvertToWindowsOutputPath(const char* path)
|
|||||||
if(ret.find(' ') != kwsys_stl::string::npos
|
if(ret.find(' ') != kwsys_stl::string::npos
|
||||||
&& ret[0] != '\"')
|
&& ret[0] != '\"')
|
||||||
{
|
{
|
||||||
ret.insert(static_cast<unsigned int>(0),
|
ret.insert(static_cast<kwsys_stl::string::size_type>(0),
|
||||||
static_cast<unsigned int>(1), '\"');
|
static_cast<kwsys_stl::string::size_type>(1), '\"');
|
||||||
ret.append(1, '\"');
|
ret.append(1, '\"');
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user