aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-01-10 23:11:57 +0000
committernyamatongwe <devnull@localhost>2002-01-10 23:11:57 +0000
commit65697a29ece801849925ca032691324135fb012f (patch)
treeccf8d10998c2a32af1e3a8e66cf75d93669fc6a1 /src/LexPython.cxx
parent76b997d0cccd68e69ee1b6d70ae6135d9d84a32f (diff)
downloadscintilla-mirror-65697a29ece801849925ca032691324135fb012f.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)