diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-30 18:49:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-30 18:49:56 (GMT) |
commit | 5a2668b326471874ca69357af831cdcf1575c621 (patch) | |
tree | 92f40c9de267766f0533df44212ec2df6415aa47 /Source/cmListCommand.cxx | |
parent | 08b14163ee2cc9cced08d80b2c81b29c83072229 (diff) | |
download | CMake-5a2668b326471874ca69357af831cdcf1575c621.zip CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.gz CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.bz2 |
ENH: add support for win64 for visual studio 2005 ide and nmake, also fix warnings produced by building for win64
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r-- | Source/cmListCommand.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index a41b5e8..398c63e 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -145,12 +145,12 @@ bool cmListCommand::HandleGetCommand(std::vector<std::string> const& args) { value += ";"; } - int nitem = varArgsExpanded.size(); + size_t nitem = varArgsExpanded.size(); if ( item < 0 ) { - item = nitem + item; + item = (int)nitem + item; } - if ( item < 0 || nitem <= item ) + if ( item < 0 || nitem <= (size_t)item ) { cmOStringStream str; str << "index: " << item << " out of range (-" << varArgsExpanded.size() << ", " << varArgsExpanded.size()-1 << ")"; @@ -213,12 +213,12 @@ bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args) int item = atoi(args[2].c_str()); - int nitem = varArgsExpanded.size(); + size_t nitem = varArgsExpanded.size(); if ( item < 0 ) { - item = nitem + item; + item = (int)nitem + item; } - if ( item < 0 || nitem <= item ) + if ( item < 0 || nitem <= (size_t)item ) { cmOStringStream str; str << "index: " << item << " out of range (-" << varArgsExpanded.size() << ", " << varArgsExpanded.size()-1 << ")"; @@ -314,12 +314,12 @@ bool cmListCommand::HandleRemoveItemCommand(std::vector<std::string> const& args for ( cc = 2; cc < args.size(); ++ cc ) { int item = atoi(args[cc].c_str()); - int nitem = varArgsExpanded.size(); + size_t nitem = varArgsExpanded.size(); if ( item < 0 ) { - item = nitem + item; + item = (int)nitem + item; } - if ( item < 0 || nitem <= item ) + if ( item < 0 || nitem <= (size_t)item ) { cmOStringStream str; str << "index: " << item << " out of range (-" << varArgsExpanded.size() << ", " << varArgsExpanded.size()-1 << ")"; |