summaryrefslogtreecommitdiff
path: root/msgpack/_packer.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/_packer.pyx')
-rw-r--r--msgpack/_packer.pyx2
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):