aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-09-26 10:47:50 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-09-26 10:47:50 +1000
commit7206c3da46d3008d970558d557daf4d85ac31ab4 (patch)
tree0273afd24f80cd25a3b5eedcd6dcf1cae7ae7702
parentc52b08fd5737a4abebb6db7af8533fa6ce1238f5 (diff)
downloadscintilla-mirror-7206c3da46d3008d970558d557daf4d85ac31ab4.tar.gz
Add parentheses to fix warning from Clang.
-rw-r--r--src/ViewStyle.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 9416ddcc6..ae68d8bff 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -513,8 +513,8 @@ bool ViewStyle::WhitespaceBackgroundDrawn() const {
}
bool ViewStyle::WhiteSpaceVisible(bool inIndent) const {
- return !inIndent && viewWhitespace == wsVisibleAfterIndent ||
- inIndent && viewWhitespace == wsVisibleOnlyInIndent ||
+ return (!inIndent && viewWhitespace == wsVisibleAfterIndent) ||
+ (inIndent && viewWhitespace == wsVisibleOnlyInIndent) ||
viewWhitespace == wsVisibleAlways;
}