From 1ea4b18dcf81b6bf671621735b6e281299035655 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 21 Apr 2014 11:49:15 +1000 Subject: Avoid warning about use of bitwise operators on boolean values. --- lexers/LexHTML.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index 5ea24d481..501e5486a 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -811,8 +811,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty } styler.SetLineState(lineCurrent, ((inScriptType & 0x03) << 0) | - ((tagOpened & 0x01) << 2) | - ((tagClosing & 0x01) << 3) | + ((tagOpened ? 1 : 0) << 2) | + ((tagClosing ? 1 : 0) << 3) | ((aspScript & 0x0F) << 4) | ((clientScript & 0x0F) << 8) | ((beforePreProc & 0xFF) << 12)); -- cgit v1.2.3