aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexAccessor.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-04-21 16:16:07 +1000
committernyamatongwe <unknown>2012-04-21 16:16:07 +1000
commit0c30f9e7b9699ff1cb27cb30ef1ba90e74b98a03 (patch)
tree21d3fbeaa51501f15267407bb62ab6303d8f0313 /lexlib/LexAccessor.h
parent45d3e865e375e8b1e76045d45323ac795018ebc6 (diff)
downloadscintilla-mirror-0c30f9e7b9699ff1cb27cb30ef1ba90e74b98a03.tar.gz
Use a cast to avoid warnings from cppcheck about sign extension of characters.
Diffstat (limited to 'lexlib/LexAccessor.h')
-rw-r--r--lexlib/LexAccessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h
index dccf31e33..c38392e88 100644
--- a/lexlib/LexAccessor.h
+++ b/lexlib/LexAccessor.h
@@ -146,7 +146,7 @@ public:
} else {
if (chAttr != chWhile)
chFlags = 0;
- chAttr |= chFlags;
+ chAttr = static_cast<char>(chAttr | chFlags);
for (unsigned int i = startSeg; i <= pos; i++) {
assert((startPosStyling + validLen) < Length());
styleBuf[validLen++] = static_cast<char>(chAttr);