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 | f61b282886bb9d7f7932fbcbe2affee06d150a5f (patch) | |
| tree | 113ea50b273f44c3e4de01bbc3eee9081e6ec81c /python/msgpack/unpack_template.h | |
| parent | 3fd28d07928c51cb563f35d9dddb0c7867ac9875 (diff) | |
| download | msgpack-python-f61b282886bb9d7f7932fbcbe2affee06d150a5f.tar.gz | |
Reduce memory footprint.
Diffstat (limited to 'python/msgpack/unpack_template.h')
| -rw-r--r-- | python/msgpack/unpack_template.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/msgpack/unpack_template.h b/python/msgpack/unpack_template.h index db33368..c960c3a 100644 --- a/python/msgpack/unpack_template.h +++ b/python/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) { |
