diff options
author | Neil <nyamatongwe@gmail.com> | 2014-04-21 11:49:15 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-04-21 11:49:15 +1000 |
commit | 1ea4b18dcf81b6bf671621735b6e281299035655 (patch) | |
tree | 7b3cc1d8804f27ea684936be9581df1ce8d64296 /lexers/LexHTML.cxx | |
parent | a4a9348b61f9dea6a9630cb76238eac693e0c95d (diff) | |
download | scintilla-mirror-1ea4b18dcf81b6bf671621735b6e281299035655.tar.gz |
Avoid warning about use of bitwise operators on boolean values.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r-- | lexers/LexHTML.cxx | 4 |
1 files 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)); |