From 25bf9ac36bccada6895dd09ce9abc3d503b672a5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 2 Nov 2021 13:13:41 +0200 Subject: [PATCH] Explicitly cast regex match to boolean --- source/glsl/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index cc0233ea..4e8ff97a 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -194,7 +194,7 @@ bool Parser::is_type(const string &token) bool Parser::is_identifier(const string &token) { static Regex re("^[a-zA-Z_][a-zA-Z0-9_]*$"); - return re.match(token); + return static_cast(re.match(token)); } template -- 2.43.0