diff options
author | Brad King <brad.king@kitware.com> | 2002-11-07 14:22:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-11-07 14:22:30 (GMT) |
commit | c72462ffb1c75573e0d67a7101438a62bfc2fda1 (patch) | |
tree | 677a8f30daec01b14f39ad4bc375bc684e0c3c19 | |
parent | 202d2ea69a4fa04b3631e3f5afa14da87882a4d8 (diff) | |
download | CMake-c72462ffb1c75573e0d67a7101438a62bfc2fda1.zip CMake-c72462ffb1c75573e0d67a7101438a62bfc2fda1.tar.gz CMake-c72462ffb1c75573e0d67a7101438a62bfc2fda1.tar.bz2 |
ERR: Fixed signed/unsigned warnings.
-rw-r--r-- | Source/cmStringCommand.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 73c6e60..2af4536 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -90,7 +90,7 @@ bool cmStringCommand::RegexMatch(std::vector<std::string> const& args) // Concatenate all the last arguments together. std::string input = args[4]; - for(int i=5; i < args.size(); ++i) + for(unsigned int i=5; i < args.size(); ++i) { input += args[i]; } @@ -133,7 +133,7 @@ bool cmStringCommand::RegexMatchAll(std::vector<std::string> const& args) // Concatenate all the last arguments together. std::string input = args[4]; - for(int i=5; i < args.size(); ++i) + for(unsigned int i=5; i < args.size(); ++i) { input += args[i]; } @@ -231,7 +231,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args) // Concatenate all the last arguments together. std::string input = args[5]; - for(int i=6; i < args.size(); ++i) + for(unsigned int i=6; i < args.size(); ++i) { input += args[i]; } @@ -265,7 +265,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args) } // Concatenate the replacement for the match. - for(int i=0; i < replacement.size(); ++i) + for(unsigned int i=0; i < replacement.size(); ++i) { if(replacement[i].number < 0) { @@ -280,7 +280,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args) std::string::size_type end = re.end(n); std::string::size_type len = input.length()-base; if((start != std::string::npos) && (end != std::string::npos) && - (start >= 0) && (start <= len) && (end >= 0) && (end <= len)) + (start <= len) && (end <= len)) { output += input.substr(base+start, end-start); } |