We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63971da + ef45359 commit 6bf5160Copy full SHA for 6bf5160
include/msgpack/pack.hpp
@@ -693,7 +693,7 @@ template <typename Stream>
693
inline packer<Stream>& packer<Stream>::pack_str(uint32_t l)
694
{
695
if(l < 32) {
696
- unsigned char d = 0xa0u | static_cast<uint8_t>(l);
+ unsigned char d = static_cast<uint8_t>(0xa0u | l);
697
char buf = take8_8(d);
698
append_buffer(&buf, 1);
699
} else if(l < 256) {
@@ -725,7 +725,7 @@ template <typename Stream>
725
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
726
727
728
729
730
731
} else if(l < 65536) {
0 commit comments