summaryrefslogtreecommitdiff
path: root/msgpack/unpack/inline_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/unpack/inline_impl.h')
-rw-r--r--msgpack/unpack/inline_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/unpack/inline_impl.h b/msgpack/unpack/inline_impl.h
index fdbe7f6..443a40c 100644
--- a/msgpack/unpack/inline_impl.h
+++ b/msgpack/unpack/inline_impl.h
@@ -168,7 +168,7 @@ int msgpack_unpacker_execute(msgpack_unpacker* ctx, const char* data, size_t len
const unsigned char* const pe = (unsigned char*)data + len;
const void* n = NULL;
- size_t trail = ctx->trail;
+ unsigned int trail = ctx->trail;
unsigned int cs = ctx->cs;
unsigned int top = ctx->top;
msgpack_unpacker_stack* stack = ctx->stack;
@@ -187,7 +187,7 @@ int msgpack_unpacker_execute(msgpack_unpacker* ctx, const char* data, size_t len
/*printf("obj %d\n",obj);*/ \
goto _push
#define push_variable_value(func, base, pos, len) \
- obj = func(user, (const void*)base, (const void*)pos, len); \
+ obj = func(user, (const char*)base, (const char*)pos, len); \
/*printf("obj %d\n",obj);*/ \
goto _push