Skip to content

Commit 6bf5160

Browse files
committed
Merge branch 'spatz-patch-4'
2 parents 63971da + ef45359 commit 6bf5160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/msgpack/pack.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ template <typename Stream>
693693
inline packer<Stream>& packer<Stream>::pack_str(uint32_t l)
694694
{
695695
if(l < 32) {
696-
unsigned char d = 0xa0u | static_cast<uint8_t>(l);
696+
unsigned char d = static_cast<uint8_t>(0xa0u | l);
697697
char buf = take8_8(d);
698698
append_buffer(&buf, 1);
699699
} else if(l < 256) {
@@ -725,7 +725,7 @@ template <typename Stream>
725725
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
726726
{
727727
if(l < 32) {
728-
unsigned char d = 0xa0u | static_cast<uint8_t>(l);
728+
unsigned char d = static_cast<uint8_t>(0xa0u | l);
729729
char buf = take8_8(d);
730730
append_buffer(&buf, 1);
731731
} else if(l < 65536) {

0 commit comments

Comments
 (0)