Fix harmless signed/unsigned warning in wxRegEx unit test
Cast the expected number of matches to "int" to have the same type as wxRegEx::Replace() return value -- there is no danger of truncation here as we're never going to expect billions of matches.
This commit is contained in:
@@ -141,7 +141,7 @@ CheckReplace(const char* pattern,
|
||||
wxRegEx re(pattern);
|
||||
|
||||
wxString text(original);
|
||||
CHECK( re.Replace(&text, replacement) == numMatches );
|
||||
CHECK( re.Replace(&text, replacement) == static_cast<int>(numMatches) );
|
||||
CHECK( text == expected );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user