summaryrefslogtreecommitdiff
path: root/cpp/unpack.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/unpack.hpp')
-rw-r--r--cpp/unpack.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/unpack.hpp b/cpp/unpack.hpp
index 8c77726..57623f2 100644
--- a/cpp/unpack.hpp
+++ b/cpp/unpack.hpp
@@ -191,8 +191,7 @@ inline bool unpacker::execute()
inline object unpacker::data()
{
- msgpack_object obj = msgpack_unpacker_data(this);
- return *reinterpret_cast<object*>(&obj);
+ return msgpack_unpacker_data(this);
}
inline zone* unpacker::release_zone()