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.
1 parent 63971da commit 3202bb6Copy full SHA for 3202bb6
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) {
0 commit comments