diff options
| author | nyamatongwe <unknown> | 2002-01-10 23:11:57 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-01-10 23:11:57 +0000 | 
| commit | 9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba (patch) | |
| tree | ccf8d10998c2a32af1e3a8e66cf75d93669fc6a1 /src/LexBaan.cxx | |
| parent | d43d89fa81e0b04b762c2a9d58cb3d86d0400ec2 (diff) | |
| download | scintilla-mirror-9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba.tar.gz | |
Made code bool-safe and turned Visual C++ warning 4800 back on.
Diffstat (limited to 'src/LexBaan.cxx')
| -rw-r--r-- | src/LexBaan.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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); | 
