From 0c30f9e7b9699ff1cb27cb30ef1ba90e74b98a03 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 21 Apr 2012 16:16:07 +1000 Subject: Use a cast to avoid warnings from cppcheck about sign extension of characters. --- lexlib/LexAccessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib') 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(chAttr | chFlags); for (unsigned int i = startSeg; i <= pos; i++) { assert((startPosStyling + validLen) < Length()); styleBuf[validLen++] = static_cast(chAttr); -- cgit v1.2.3