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/LexPython.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LexPython.cxx') diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 221859035..3bfbb4a82 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -276,8 +276,8 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse const int maxPos = startPos + length; const int maxLines = styler.GetLine(maxPos-1); // Requested last line const int docLines = styler.GetLine(styler.Length() - 1); // Available last line - const bool foldComment = styler.GetPropertyInt("fold.comment.python"); - const bool foldQuotes = styler.GetPropertyInt("fold.quotes.python"); + const bool foldComment = styler.GetPropertyInt("fold.comment.python") != 0; + const bool foldQuotes = styler.GetPropertyInt("fold.quotes.python") != 0; // Backtrack to previous non-blank line so we can determine indent level // for any white space lines (needed esp. within triple quoted strings) -- cgit v1.2.3