Skip to content

Commit 63b9fa5

Browse files
committed
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*'
1 parent b0c193f commit 63b9fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/_unpacker.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None,
108108
if ret == 1:
109109
obj = unpack_data(&ctx)
110110
if off < buff.len:
111-
raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>(buff)+off, buff.len-off))
111+
raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>buff.buf+off, buff.len-off))
112112
return obj
113113
else:
114114
raise UnpackValueError("Unpack failed: error = %d" % (ret,))

0 commit comments

Comments
 (0)