Skip to content

Commit 3dbb2d1

Browse files
committed
fix compilation errors
1 parent d4bb86c commit 3dbb2d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgpack/_unpacker.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from cpython cimport *
55
cdef extern from "Python.h":
66
ctypedef struct PyObject
7-
cdef int PyObject_AsReadBuffer(object o, const void* buff, Py_ssize_t* buf_len) except -1
7+
cdef int PyObject_AsReadBuffer(object o, const void** buff, Py_ssize_t* buf_len) except -1
88

99
from libc.stdlib cimport *
1010
from libc.string cimport *
@@ -95,7 +95,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None,
9595
cdef char* cenc = NULL
9696
cdef char* cerr = NULL
9797

98-
PyObject_AsReadBuffer(packed, <const void*>&buf, &buf_len)
98+
PyObject_AsReadBuffer(packed, <const void**>&buf, &buf_len)
9999

100100
if encoding is not None:
101101
if isinstance(encoding, unicode):

0 commit comments

Comments
 (0)