From: Mikko Rasa Date: Sun, 31 Oct 2021 18:53:07 +0000 (+0200) Subject: Explicitly convert regex match to boolean X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=commitdiff_plain;h=ba4f1d00c781258a1a4e8036676e0d9ecf602533 Explicitly convert regex match to boolean --- diff --git a/tool/compiler.cpp b/tool/compiler.cpp index 8360ee6..b7f310c 100644 --- a/tool/compiler.cpp +++ b/tool/compiler.cpp @@ -170,7 +170,7 @@ void ForEach::finish() { bool match = false; for(list::const_iterator j = patterns.begin(); (j!=patterns.end() && !match); ++j) - match = Regex(*j).match(f); + match = static_cast(Regex(*j).match(f)); for(list::const_iterator j = excludes.begin(); (j!=excludes.end() && match); ++j) match = !Regex(*j).match(f); if(match)