summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2016-05-05 02:07:46 +0900
committerINADA Naoki <methane@users.noreply.github.com>2016-05-05 02:07:46 +0900
commit63e23d37f9f3646f0fc3b327ddf1f3e1f200baf5 (patch)
treec35033e4dbf3dd0d6bfb0fb978866ac1fa051682 /msgpack
parentfc2933853af1910989b51930e63fce5d9f73887a (diff)
downloadmsgpack-python-63e23d37f9f3646f0fc3b327ddf1f3e1f200baf5.tar.gz
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
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/_packer.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx
index e07b194..3981f20 100644
--- a/msgpack/_packer.pyx
+++ b/msgpack/_packer.pyx
@@ -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)