aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-01-10 23:11:57 +0000
committernyamatongwe <unknown>2002-01-10 23:11:57 +0000
commit9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba (patch)
treeccf8d10998c2a32af1e3a8e66cf75d93669fc6a1 /src/LexHTML.cxx
parentd43d89fa81e0b04b762c2a9d58cb3d86d0400ec2 (diff)
downloadscintilla-mirror-9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba.tar.gz
Made code bool-safe and turned Visual C++ warning 4800 back on.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 6042f168f..dba7646d6 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -272,7 +272,7 @@ static int classifyWordHTVB(unsigned int start, unsigned int end, WordList &keyw
}
static void classifyWordHTPy(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, char *prevWord, int inScriptType) {
- bool wordIsNumber = isdigit(styler[start]);
+ bool wordIsNumber = isdigit(styler[start]) != 0;
char s[30 + 1];
unsigned int i = 0;
for (; i < end - start + 1 && i < 30; i++) {
@@ -296,7 +296,7 @@ static void classifyWordHTPy(unsigned int start, unsigned int end, WordList &key
// Called when in a PHP word
static void classifyWordHTPHP(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) {
char chAttr = SCE_HPHP_DEFAULT;
- bool wordIsNumber = isdigit(styler[start]);
+ bool wordIsNumber = isdigit(styler[start]) != 0;
if (wordIsNumber)
chAttr = SCE_HPHP_NUMBER;
else {
@@ -437,9 +437,9 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
int scriptLanguage = ScriptOfState(state);
- const bool foldHTML = styler.GetPropertyInt("fold.html", 0);
+ const bool foldHTML = styler.GetPropertyInt("fold.html", 0) != 0;
const bool fold = foldHTML && styler.GetPropertyInt("fold");
- const bool foldCompact = styler.GetPropertyInt("fold.compact", 1);
+ const bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0;
int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK;
int levelCurrent = levelPrev;