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 3202bb6 commit ef45359Copy full SHA for ef45359
include/msgpack/pack.hpp
@@ -725,7 +725,7 @@ template <typename Stream>
725
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
726
{
727
if(l < 32) {
728
- unsigned char d = 0xa0u | static_cast<uint8_t>(l);
+ unsigned char d = static_cast<uint8_t>(0xa0u | l);
729
char buf = take8_8(d);
730
append_buffer(&buf, 1);
731
} else if(l < 65536) {
0 commit comments