From b11c3af2035f2e91de3a61d8de2de031ee5fb8ab Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 8 Jun 2008 23:15:05 +0000 Subject: [PATCH] Fix some more style warnings --- source/utf8.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utf8.cpp b/source/utf8.cpp index 2d0458f..08dd69a 100644 --- a/source/utf8.cpp +++ b/source/utf8.cpp @@ -34,7 +34,7 @@ void Utf8::Encoder::encode_char(UnicodeChar ch, string &buf) utf[0]=0xFF<<(8-bytes) | ch>>(bytes*6-6); for(unsigned j=bytes-1; j>0; --j) { - utf[j]=0x80 | ch&0x3F; + utf[j]=0x80 | (ch&0x3F); ch>>=6; } @@ -79,7 +79,7 @@ UnicodeChar Utf8::Decoder::decode_char(const string &str, string::const_iterator i=j; return result; } - result=result<<6 | (*j++)&0x3F; + result=(result<<6) | ((*j++)&0x3F); } if(k