diff options
author | inada-n <songofacandy@gmail.com> | 2009-12-16 22:14:13 +0900 |
---|---|---|
committer | inada-n <songofacandy@gmail.com> | 2009-12-16 22:14:13 +0900 |
commit | 5ff2c6be74cb61363995d43772c5a52566b19000 (patch) | |
tree | fff9bd7d3401599a952a5cc9dd790b83128c8501 /python/msgpack/_msgpack.pyx | |
parent | dd18402737bdd12fbf53fe0543e29509f9609f3f (diff) | |
download | msgpack-python-5ff2c6be74cb61363995d43772c5a52566b19000.tar.gz |
Fix bug come from previous commit
Diffstat (limited to 'python/msgpack/_msgpack.pyx')
-rw-r--r-- | python/msgpack/_msgpack.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/msgpack/_msgpack.pyx b/python/msgpack/_msgpack.pyx index 9ff0c57..dcabc0f 100644 --- a/python/msgpack/_msgpack.pyx +++ b/python/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() |