diff options
author | INADA Naoki <inada-n@klab.com> | 2013-10-21 01:12:57 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2013-10-21 01:12:57 +0900 |
commit | d84a403bc0bbbb36c4a5833e00269eef6c4a91ae (patch) | |
tree | 67e86c2d28bce248448c8bb92ba196c1381c5d12 /msgpack/_packer.pyx | |
parent | e3fee4db5fbf1ead4a98fff6c8843574480c3c2a (diff) | |
download | msgpack-python-d84a403bc0bbbb36c4a5833e00269eef6c4a91ae.tar.gz |
fix bugs.
Diffstat (limited to 'msgpack/_packer.pyx')
-rw-r--r-- | msgpack/_packer.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx index f2d058e..f261f08 100644 --- a/msgpack/_packer.pyx +++ b/msgpack/_packer.pyx @@ -186,7 +186,7 @@ cdef class Packer(object): # This should be before Tuple because ExtType is namedtuple. longval = o.code rawval = o.data - L = len(o[1]) + L = len(o.data) ret = msgpack_pack_ext(&self.pk, longval, L) ret = msgpack_pack_raw_body(&self.pk, rawval, L) elif PyTuple_Check(o) or PyList_Check(o): |