aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-04-21 11:49:15 +1000
committerNeil <nyamatongwe@gmail.com>2014-04-21 11:49:15 +1000
commitd6b6e4dc3d4f8b46d6f1d0b555f522ce107ac594 (patch)
tree2f7c57cd166d802427df050f1b3d108c445270d1
parent6df05758b14db8fbbc9cb2d4e30bfcd5749492df (diff)
downloadscintilla-mirror-d6b6e4dc3d4f8b46d6f1d0b555f522ce107ac594.tar.gz
Avoid warning about use of bitwise operators on boolean values.
-rw-r--r--lexers/LexHTML.cxx4
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));