From ebe4c1f4bc31bc1f47831d72819cac5a2a584604 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Tue, 26 Jun 2012 17:27:29 +0900 Subject: manage to compile on windows Use C++ compiler to build. --- msgpack/_msgpack.pyx | 4 ++-- msgpack/pack.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'msgpack') diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx index 990f585..526c003 100644 --- a/msgpack/_msgpack.pyx +++ b/msgpack/_msgpack.pyx @@ -222,8 +222,8 @@ def unpackb(object packed, object object_hook=None, object list_hook=None, bint template_init(&ctx) ctx.user.use_list = use_list ctx.user.object_hook = ctx.user.list_hook = NULL - ctx.user.encoding = enc - ctx.user.unicode_errors = err + ctx.user.encoding = enc + ctx.user.unicode_errors = err if object_hook is not None: if not PyCallable_Check(object_hook): raise TypeError("object_hook must be a callable.") diff --git a/msgpack/pack.h b/msgpack/pack.h index d36b436..4c0373e 100644 --- a/msgpack/pack.h +++ b/msgpack/pack.h @@ -77,7 +77,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_ if (len + l > bs) { bs = (len + l) * 2; - buf = realloc(buf, bs); + buf = (char*)realloc(buf, bs); if (!buf) return -1; } memcpy(buf + len, data, l); -- cgit v1.2.1