summaryrefslogtreecommitdiff
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-30 13:49:56 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-30 13:49:56 -0500
commit5a2668b326471874ca69357af831cdcf1575c621 (patch)
tree92f40c9de267766f0533df44212ec2df6415aa47 /Source/cmListCommand.cxx
parent08b14163ee2cc9cced08d80b2c81b29c83072229 (diff)
downloadcmake-5a2668b326471874ca69357af831cdcf1575c621.tar.gz
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.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index a41b5e808c..398c63ea57 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 << ")";