From 295b634ca691ff87e8451593e277211fcb02c929 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 00:31:03 -0500 Subject: [7731] Some code cleanups, warrning fixes. Author: VladimirMangos --HG-- branch : trunk --- dep/include/utf8cpp/utf8/checked.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dep/include/utf8cpp/utf8') 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((cp >> 12) | 0xe0); - *(result++) = static_cast((cp >> 6) & 0x3f | 0x80); + *(result++) = static_cast(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast((cp & 0x3f) | 0x80); } else if (cp <= internal::CODE_POINT_MAX) { // four octets *(result++) = static_cast((cp >> 18) | 0xf0); - *(result++) = static_cast((cp >> 12)& 0x3f | 0x80); - *(result++) = static_cast((cp >> 6) & 0x3f | 0x80); + *(result++) = static_cast(((cp >> 12)& 0x3f) | 0x80); + *(result++) = static_cast(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast((cp & 0x3f) | 0x80); } else -- cgit v1.2.3