summaryrefslogtreecommitdiff
path: root/cpp/unpack_inline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/unpack_inline.cpp')
-rw-r--r--cpp/unpack_inline.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/unpack_inline.cpp b/cpp/unpack_inline.cpp
index 82f6e7a..9002327 100644
--- a/cpp/unpack_inline.cpp
+++ b/cpp/unpack_inline.cpp
@@ -59,11 +59,8 @@ static inline object_class* msgpack_unpack_map_start(zone** z, unsigned int n)
static inline void msgpack_unpack_map_item(zone** z, object_class* c, object_class* k, object_class* v)
{ reinterpret_cast<object_map*>(c)->store(k, v); }
-static inline object_class* msgpack_unpack_string(zone** z, const void* b, size_t l)
-{ return (*z)->nraw(b, l); }
-
-static inline object_class* msgpack_unpack_raw(zone** z, const void* b, size_t l)
-{ return (*z)->nraw(b, l); }
+static inline object_class* msgpack_unpack_raw(zone** z, const void* b, const void* p, size_t l)
+{ return (*z)->nraw_ref(p, l); }
} // extern "C"