mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-17 11:05:05 +02:00
Merge branch 'spatz-patch-4'
This commit is contained in:
@@ -693,7 +693,7 @@ template <typename Stream>
|
||||
inline packer<Stream>& packer<Stream>::pack_str(uint32_t l)
|
||||
{
|
||||
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);
|
||||
append_buffer(&buf, 1);
|
||||
} else if(l < 256) {
|
||||
@@ -725,7 +725,7 @@ template <typename Stream>
|
||||
inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
|
||||
{
|
||||
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);
|
||||
append_buffer(&buf, 1);
|
||||
} else if(l < 65536) {
|
||||
|
Reference in New Issue
Block a user