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

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhihao Yuan <lichray@gmail.com>2017-01-19 01:16:07 +0300
committerZhihao Yuan <lichray@gmail.com>2017-01-19 03:09:18 +0300
commit3cc77d5d635c2411f327cc4f262f37abb66ff43c (patch)
tree930c67dfb6244e33002134bc0110879ca7dcbe71 /include/rapidjson/encodedstream.h
parent835f2f4a79768137ed1d3f262bc02f3aced05ff9 (diff)
Treat signed-unsigned conversions as errors.
Diffstat (limited to 'include/rapidjson/encodedstream.h')
-rw-r--r--include/rapidjson/encodedstream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/encodedstream.h b/include/rapidjson/encodedstream.h
index 14506838..223601c0 100644
--- a/include/rapidjson/encodedstream.h
+++ b/include/rapidjson/encodedstream.h
@@ -200,7 +200,7 @@ private:
// xx xx xx xx UTF-8
if (!hasBOM_) {
- unsigned pattern = (c[0] ? 1 : 0) | (c[1] ? 2 : 0) | (c[2] ? 4 : 0) | (c[3] ? 8 : 0);
+ int pattern = (c[0] ? 1 : 0) | (c[1] ? 2 : 0) | (c[2] ? 4 : 0) | (c[3] ? 8 : 0);
switch (pattern) {
case 0x08: type_ = kUTF32BE; break;
case 0x0A: type_ = kUTF16BE; break;