mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-04-14 06:50:20 +00:00
travis: Use docker to test 32bit environment (#189)
* travis: testing matrix.include feature to use docker * Add test script for 32bit * Fix OverflowError in 32bit Environment
This commit is contained in:
parent
fc2933853a
commit
63e23d37f9
3 changed files with 43 additions and 13 deletions
|
|
@ -272,7 +272,7 @@ cdef class Packer(object):
|
|||
msgpack_pack_ext(&self.pk, typecode, len(data))
|
||||
msgpack_pack_raw_body(&self.pk, data, len(data))
|
||||
|
||||
def pack_array_header(self, size_t size):
|
||||
def pack_array_header(self, long long size):
|
||||
if size > ITEM_LIMIT:
|
||||
raise PackValueError
|
||||
cdef int ret = msgpack_pack_array(&self.pk, size)
|
||||
|
|
@ -285,7 +285,7 @@ cdef class Packer(object):
|
|||
self.pk.length = 0
|
||||
return buf
|
||||
|
||||
def pack_map_header(self, size_t size):
|
||||
def pack_map_header(self, long long size):
|
||||
if size > ITEM_LIMIT:
|
||||
raise PackValueError
|
||||
cdef int ret = msgpack_pack_map(&self.pk, size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue