Skip to content
Snippets Groups Projects
Commit c72462ff authored by Brad King's avatar Brad King
Browse files

ERR: Fixed signed/unsigned warnings.

parent 202d2ea6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment