diff options
author | Naoki INADA <inada-n@eagle> | 2009-06-24 01:54:47 +0900 |
---|---|---|
committer | Naoki INADA <inada-n@eagle> | 2009-06-24 01:54:47 +0900 |
commit | de6afa5285c2f748d0c0c72b930fce77f68fcb85 (patch) | |
tree | c9cc84f4510881bbeb76c7013f5480c2919abb27 /msgpack/unpack_template.h | |
parent | d32b48f98f09be8c829a8d48f8d7fcdb4bd0c61e (diff) | |
download | msgpack-python-de6afa5285c2f748d0c0c72b930fce77f68fcb85.tar.gz |
Reduce memory footprint.
Diffstat (limited to 'msgpack/unpack_template.h')
-rw-r--r-- | msgpack/unpack_template.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index db33368..c960c3a 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -43,10 +43,13 @@ msgpack_unpack_struct_decl(_stack) { msgpack_unpack_object obj; - size_t curr; size_t count; unsigned int ct; - msgpack_unpack_object map_key; + + union { + size_t curr; + msgpack_unpack_object map_key; + }; }; msgpack_unpack_struct_decl(_context) { |