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:
parent
eaa769a73a
commit
93c86fe5cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue