diff options
author | INADA Naoki <songofacandy@gmail.com> | 2013-10-17 08:52:59 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2013-10-17 08:52:59 +0900 |
commit | 84f6b100190049a5d1bceb916208eeae2a3d2591 (patch) | |
tree | 5ca1a706ba8e4d6704fb7fde8d424087ae993ca1 /msgpack/pack_template.h | |
parent | 171c5381135bdfc6db154100ad5a9913955408a7 (diff) | |
download | msgpack-python-84f6b100190049a5d1bceb916208eeae2a3d2591.tar.gz |
Add bin type support to pure Python packer.
Diffstat (limited to 'msgpack/pack_template.h')
-rw-r--r-- | msgpack/pack_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/pack_template.h b/msgpack/pack_template.h index ff1cbaa..d228d7a 100644 --- a/msgpack/pack_template.h +++ b/msgpack/pack_template.h @@ -664,7 +664,7 @@ static inline int msgpack_pack_map(msgpack_packer* x, unsigned int n) static inline int msgpack_pack_raw(msgpack_packer* x, size_t l) { - if(l < 32) { + if (l < 32) { unsigned char d = 0xa0 | (uint8_t)l; msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); } else if (x->use_bin_type && l < 256) { // str8 is new format introduced with bin. |