Skip to content

Commit 3202bb6

Browse files
committed
Fix warning with -Wconversion
1 parent 63971da commit 3202bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack/pack.hpp

Lines changed: 1 addition & 1 deletion
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) {

0 commit comments

Comments
 (0)