Skip to content

Commit 111683b

Browse files
author
Evgenii Gorinov
committed
Unpacker: allow to use buffer with size greater than 2 GB
Usually INT_MAX equals 2 ** 32 - 1 even for 64 bit systems.
1 parent 8b6ce53 commit 111683b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

msgpack/_unpacker.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ cdef class Unpacker(object):
302302
def __init__(self, file_like=None, Py_ssize_t read_size=0,
303303
bint use_list=True, bint raw=True,
304304
object object_hook=None, object object_pairs_hook=None, object list_hook=None,
305-
encoding=None, unicode_errors=None, int max_buffer_size=0,
305+
encoding=None, unicode_errors=None, Py_ssize_t max_buffer_size=0,
306306
object ext_hook=ExtType,
307307
Py_ssize_t max_str_len=1024*1024,
308308
Py_ssize_t max_bin_len=1024*1024,

0 commit comments

Comments
 (0)