From: Mikko Rasa Date: Tue, 2 Nov 2021 11:13:41 +0000 (+0200) Subject: Explicitly cast regex match to boolean X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=25bf9ac36bccada6895dd09ce9abc3d503b672a5;p=libs%2Fgl.git Explicitly cast regex match to boolean --- 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