From 93c86fe5cd5ab3e17fbf78dac0f3afd571696134 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Feb 2022 13:36:49 +0000 Subject: [PATCH] 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. --- tests/regex/wxregextest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regex/wxregextest.cpp b/tests/regex/wxregextest.cpp index ce5721d4b0..e1d58d1f65 100644 --- a/tests/regex/wxregextest.cpp +++ b/tests/regex/wxregextest.cpp @@ -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(numMatches) ); CHECK( text == expected ); }