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/LexBaan.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LexBaan.cxx') diff --git a/src/LexBaan.cxx b/src/LexBaan.cxx index b0d2b1dad..a8a9d6054 100644 --- a/src/LexBaan.cxx +++ b/src/LexBaan.cxx @@ -34,7 +34,7 @@ static void ColouriseBaanDoc(unsigned int startPos, int length, int initStyle, W WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; - bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor"); + bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor") != 0; if (initStyle == SCE_BAAN_STRINGEOL) // Does not leak onto next line initStyle = SCE_BAAN_DEFAULT; @@ -132,8 +132,8 @@ static void ColouriseBaanDoc(unsigned int startPos, int length, int initStyle, W static void FoldBaanDoc(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