Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Vogel <post@steffenvogel.de>2017-10-30 18:13:32 +0300
committerSteffen Vogel <post@steffenvogel.de>2017-10-30 18:20:47 +0300
commitaf0c5d6f194a7c212bad79d4dedfd44aac59cdf3 (patch)
treef03b3157505fb4124c029f13c4f5601bc95f570a /include
parent7d69f7108d72c608c8469209f7f3f501d8fff781 (diff)
fix more compiler warnings emitted by Clang on Travis-CI
Diffstat (limited to 'include')
-rw-r--r--include/transport/utf8/unchecked.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/transport/utf8/unchecked.h b/include/transport/utf8/unchecked.h
index 3aa1a5db..540ec5e6 100644
--- a/include/transport/utf8/unchecked.h
+++ b/include/transport/utf8/unchecked.h
@@ -45,13 +45,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 { // 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);
}
return result;