mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 07:25:55 +02:00
Fix warning with -Wconversion at pack_v4raw().
This commit is contained in:
parent
3202bb6a2e
commit
ef45359d81
@ -725,7 +725,7 @@ template <typename Stream>
|
|||||||
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
|
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
|
||||||
{
|
{
|
||||||
if(l < 32) {
|
if(l < 32) {
|
||||||
unsigned char d = 0xa0u | static_cast<uint8_t>(l);
|
unsigned char d = static_cast<uint8_t>(0xa0u | l);
|
||||||
char buf = take8_8(d);
|
char buf = take8_8(d);
|
||||||
append_buffer(&buf, 1);
|
append_buffer(&buf, 1);
|
||||||
} else if(l < 65536) {
|
} else if(l < 65536) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user