aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx6
1 files changed, 3 insertions, 3 deletions
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);