summaryrefslogtreecommitdiff
path: root/cpp/object.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/object.hpp')
-rw-r--r--cpp/object.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/object.hpp b/cpp/object.hpp
index 77d55bb..13402cc 100644
--- a/cpp/object.hpp
+++ b/cpp/object.hpp
@@ -173,7 +173,8 @@ packer<Stream>& operator<< (packer<Stream>& o, const object& v)
return o;
case type::RAW:
- o.pack_raw(v.via.ref.ptr, v.via.ref.size);
+ o.pack_raw(v.via.ref.size);
+ o.pack_raw_body(v.via.ref.ptr, v.via.ref.size);
return o;
case type::ARRAY: