summaryrefslogtreecommitdiff
path: root/ruby/unpack_inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/unpack_inline.c')
-rw-r--r--ruby/unpack_inline.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ruby/unpack_inline.c b/ruby/unpack_inline.c
index f6715d9..b30754b 100644
--- a/ruby/unpack_inline.c
+++ b/ruby/unpack_inline.c
@@ -71,11 +71,8 @@ static inline VALUE msgpack_unpack_map_start(msgpack_unpack_context* x, unsigned
static inline void msgpack_unpack_map_item(msgpack_unpack_context* x, VALUE c, VALUE k, VALUE v)
{ rb_hash_aset(c, k, v); }
-static inline VALUE msgpack_unpack_string(msgpack_unpack_context* x, const void* b, size_t l)
-{ return rb_str_new(b, l); }
-
-static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, size_t l)
-{ return rb_str_new(b, l); }
+static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, const void* p, size_t l)
+{ return rb_str_new(p, l); }
#include "msgpack/unpack/inline_impl.h"