diff options
author | megamage <none@none> | 2009-04-29 00:31:03 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 00:31:03 -0500 |
commit | 295b634ca691ff87e8451593e277211fcb02c929 (patch) | |
tree | 75fa8ebd556019305b031531e2fa9b3937e79553 /dep/include/utf8cpp | |
parent | de11b9e901d1d1caa0634fad541f08f11c5781af (diff) |
[7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'dep/include/utf8cpp')
-rw-r--r-- | dep/include/utf8cpp/utf8/checked.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dep/include/utf8cpp/utf8/checked.h b/dep/include/utf8cpp/utf8/checked.h index c88844023cb..86204eae3ea 100644 --- a/dep/include/utf8cpp/utf8/checked.h +++ b/dep/include/utf8cpp/utf8/checked.h @@ -117,13 +117,13 @@ namespace utf8 } else if (cp < 0x10000) { // three octets *(result++) = static_cast<uint8_t>((cp >> 12) | 0xe0); - *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f | 0x80); + *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80); } else if (cp <= internal::CODE_POINT_MAX) { // four octets *(result++) = static_cast<uint8_t>((cp >> 18) | 0xf0); - *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f | 0x80); - *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f | 0x80); + *(result++) = static_cast<uint8_t>(((cp >> 12)& 0x3f) | 0x80); + *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80); } else |