aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.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/LexPython.cxx
parentd43d89fa81e0b04b762c2a9d58cb3d86d0400ec2 (diff)
downloadscintilla-mirror-9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba.tar.gz
Made code bool-safe and turned Visual C++ warning 4800 back on.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx4
1 files changed, 2 insertions, 2 deletions
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)