summaryrefslogtreecommitdiff
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-22 16:21:27 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-22 16:21:27 -0500
commit0bdb092a019c87825a88208d4fdaef77379e3004 (patch)
treeb04edec139322b0b81bd3d83c43114edf27bdef1 /Source/cmSystemTools.cxx
parentd79e3ae698413b0204c4819db1fbe25486c96fbf (diff)
downloadcmake-0bdb092a019c87825a88208d4fdaef77379e3004.tar.gz
ENH: add relative paths to visual studio 6 and 7 project files
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 72a2593a83..5c4f307144 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1107,14 +1107,14 @@ std::string cmSystemTools::RelativePath(const char* local, const char* remote)
std::vector<std::string> fileSplit = cmSystemTools::SplitString(local);
std::vector<std::string> relativeSplit = cmSystemTools::SplitString(remote);
// count up how many mathing directory names there are from the start
- int sameCount = 0;
+ unsigned int sameCount = 0;
while(sameCount < fileSplit.size()-1 && sameCount < relativeSplit.size()-1 &&
fileSplit[sameCount] == relativeSplit[sameCount])
{
sameCount++;
}
// put in sameCount number of ../ into the path
- int i;
+ unsigned int i;
for(i = sameCount; i < fileSplit.size(); ++i)
{
relativePath += "../";