summaryrefslogtreecommitdiff
path: root/msgpack/_msgpack.pyx
diff options
context:
space:
mode:
authorinada-n <songofacandy@gmail.com>2009-12-16 22:14:13 +0900
committerinada-n <songofacandy@gmail.com>2009-12-16 22:14:13 +0900
commitbb93f093b6a7c4bbba46fe73f08fd8e8c7325443 (patch)
treec3126b9133fe7de1aa5ac349d8dc74d8732fb5be /msgpack/_msgpack.pyx
parent35a4d612c9f45c238f78f37013a4be4c9d74c13b (diff)
downloadmsgpack-python-bb93f093b6a7c4bbba46fe73f08fd8e8c7325443.tar.gz
Fix bug come from previous commit
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r--msgpack/_msgpack.pyx3
1 files changed, 2 insertions, 1 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx
index 9ff0c57..dcabc0f 100644
--- a/msgpack/_msgpack.pyx
+++ b/msgpack/_msgpack.pyx
@@ -311,8 +311,9 @@ cdef class Unpacker(object):
self.fill_buffer()
ret = template_execute(&self.ctx, self.buf, self.buf_tail, &self.buf_head)
if ret == 1:
+ o = template_data(&self.ctx)
template_init(&self.ctx)
- return template_data(&self.ctx)
+ return o
elif ret == 0:
if self.file_like is not None:
return self.unpack()