diff options
| author | nyamatongwe <devnull@localhost> | 2002-01-10 23:11:57 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-01-10 23:11:57 +0000 | 
| commit | 65697a29ece801849925ca032691324135fb012f (patch) | |
| tree | ccf8d10998c2a32af1e3a8e66cf75d93669fc6a1 /src/LexCPP.cxx | |
| parent | 76b997d0cccd68e69ee1b6d70ae6135d9d84a32f (diff) | |
| download | scintilla-mirror-65697a29ece801849925ca032691324135fb012f.tar.gz | |
Made code bool-safe and turned Visual C++ warning 4800 back on.
Diffstat (limited to 'src/LexCPP.cxx')
| -rw-r--r-- | src/LexCPP.cxx | 6 | 
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); | 
