diff options
author | INADA Naoki <songofacandy@gmail.com> | 2012-06-26 17:27:29 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2012-06-26 17:27:29 +0900 |
commit | ebe4c1f4bc31bc1f47831d72819cac5a2a584604 (patch) | |
tree | 9ad8cb9a9f114ea8603f94dd50fd1458357bd59a /msgpack/_msgpack.pyx | |
parent | 58eb7d0ce857b0ffb5e0ee4addf5ad1b3b47afa9 (diff) | |
download | msgpack-python-ebe4c1f4bc31bc1f47831d72819cac5a2a584604.tar.gz |
manage to compile on windows
Use C++ compiler to build.
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r-- | msgpack/_msgpack.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
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 = <const_char_ptr>enc + ctx.user.unicode_errors = <const_char_ptr>err if object_hook is not None: if not PyCallable_Check(object_hook): raise TypeError("object_hook must be a callable.") |