From 9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 10 Jan 2002 23:11:57 +0000 Subject: Made code bool-safe and turned Visual C++ warning 4800 back on. --- src/LexCPP.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LexCPP.cxx') diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 9248bd68e..06da84341 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -58,7 +58,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; - bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor"); + bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor") != 0; // Do not leak onto next line if (initStyle == SCE_C_STRINGEOL) @@ -262,8 +262,8 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo static void FoldCppDoc(unsigned int startPos, int length, int initStyle, WordList *[], Accessor &styler) { - bool foldComment = styler.GetPropertyInt("fold.comment"); - bool foldCompact = styler.GetPropertyInt("fold.compact", 1); + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; unsigned int endPos = startPos + length; int visibleChars = 0; int lineCurrent = styler.GetLine(startPos); -- cgit v1.2.3