From de235a2c2089372a81c655ed153af441d6cae2f5 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 May 2015 11:28:25 +1000 Subject: Fix warning from Visual C++. --- lexers/LexVerilog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index f21b19de2..55dfa06c7 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -445,7 +445,7 @@ void SCI_METHOD LexerVerilog::Lex(unsigned int startPos, int length, int initSty int activitySet = preproc.IsInactive() ? activeFlag : 0; int lineEndNext = styler.LineEnd(curLine); bool isEscapedId = false; // true when parsing an escaped Identifier - bool isProtected = lineState&kwProtected; // true when parsing a protected region + bool isProtected = (lineState&kwProtected) != 0; // true when parsing a protected region for (; sc.More(); sc.Forward()) { if (sc.atLineStart) { -- cgit v1.2.3