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:
Vadim Zeitlin
2022-02-10 13:36:49 +00:00
parent eaa769a73a
commit 93c86fe5cd

View File

@@ -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 );
}