diff options
author | Zhihao Yuan <lichray@gmail.com> | 2017-01-19 01:16:07 +0300 |
---|---|---|
committer | Zhihao Yuan <lichray@gmail.com> | 2017-01-19 03:09:18 +0300 |
commit | 3cc77d5d635c2411f327cc4f262f37abb66ff43c (patch) | |
tree | 930c67dfb6244e33002134bc0110879ca7dcbe71 /include/rapidjson/encodedstream.h | |
parent | 835f2f4a79768137ed1d3f262bc02f3aced05ff9 (diff) |
Treat signed-unsigned conversions as errors.
Diffstat (limited to 'include/rapidjson/encodedstream.h')
-rw-r--r-- | include/rapidjson/encodedstream.h | 2 |
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; |