summaryrefslogtreecommitdiff
path: root/python/msgpack/unpack_template.h
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@eagle>2009-06-24 01:54:47 +0900
committerNaoki INADA <inada-n@eagle>2009-06-24 01:54:47 +0900
commitf61b282886bb9d7f7932fbcbe2affee06d150a5f (patch)
tree113ea50b273f44c3e4de01bbc3eee9081e6ec81c /python/msgpack/unpack_template.h
parent3fd28d07928c51cb563f35d9dddb0c7867ac9875 (diff)
downloadmsgpack-python-f61b282886bb9d7f7932fbcbe2affee06d150a5f.tar.gz
Reduce memory footprint.
Diffstat (limited to 'python/msgpack/unpack_template.h')
-rw-r--r--python/msgpack/unpack_template.h7
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) {