diff options
author | nyamatongwe <devnull@localhost> | 2012-04-21 16:16:07 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-21 16:16:07 +1000 |
commit | d037dc0fc207420e2e198a9fc65e93bf1041226f (patch) | |
tree | 3eb0ca8e6d069b37b9eb5e2cc613a62078e43d57 /lexlib/LexAccessor.h | |
parent | e62d19cedcb790c79765d1f0cc096b494930a2b0 (diff) | |
download | scintilla-mirror-d037dc0fc207420e2e198a9fc65e93bf1041226f.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.h | 2 |
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); |