From ba4f1d00c781258a1a4e8036676e0d9ecf602533 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 31 Oct 2021 20:53:07 +0200 Subject: [PATCH] Explicitly convert regex match to boolean --- tool/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2