From 63b9fa5843ad9e38e3797c061de495f49659ab08 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 16 May 2013 12:57:28 +0900 Subject: fix a compilation error msgpack/_unpacker.pyx: In function 'PyObject* __pyx_pf_7msgpack_9_unpacker_unpac kb(PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*, PyObject*, PyObje ct*)': msgpack/_unpacker.pyx:111:70: error: invalid cast from type 'Py_buffer' to type 'char*' --- msgpack/_unpacker.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'msgpack/_unpacker.pyx') diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx index 46be7e0..06806bd 100644 --- a/msgpack/_unpacker.pyx +++ b/msgpack/_unpacker.pyx @@ -108,7 +108,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None, if ret == 1: obj = unpack_data(&ctx) if off < buff.len: - raise ExtraData(obj, PyBytes_FromStringAndSize((buff)+off, buff.len-off)) + raise ExtraData(obj, PyBytes_FromStringAndSize(buff.buf+off, buff.len-off)) return obj else: raise UnpackValueError("Unpack failed: error = %d" % (ret,)) -- cgit v1.2.1