From ef45359d817ddf9a3da57f3843f8187da1c0600c Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Thu, 10 Sep 2015 22:11:52 +0900 Subject: [PATCH] Fix warning with -Wconversion at pack_v4raw(). --- include/msgpack/pack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msgpack/pack.hpp b/include/msgpack/pack.hpp index 6f6099b4..9dffba8b 100644 --- a/include/msgpack/pack.hpp +++ b/include/msgpack/pack.hpp @@ -725,7 +725,7 @@ template inline packer& packer::pack_v4raw(uint32_t l) { if(l < 32) { - unsigned char d = 0xa0u | static_cast(l); + unsigned char d = static_cast(0xa0u | l); char buf = take8_8(d); append_buffer(&buf, 1); } else if(l < 65536) {