diff options
| author | Naoki INADA <inada-n@gear> | 2009-06-08 12:46:02 +0900 |
|---|---|---|
| committer | Naoki INADA <inada-n@gear> | 2009-06-08 12:46:02 +0900 |
| commit | 46fae3d893be1fd75195c71b1503352f02d7ef38 (patch) | |
| tree | 4401f486b0bd27bdedf4fd20d6005459cf75a00f /msgpack.pyx | |
| parent | b0f42ca49eb4ad4770efe6587b7fe3b6f0e06da1 (diff) | |
| download | msgpack-python-46fae3d893be1fd75195c71b1503352f02d7ef38.tar.gz | |
Fix double INCREF-ing when unpacking.
Diffstat (limited to 'msgpack.pyx')
| -rw-r--r-- | msgpack.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack.pyx b/msgpack.pyx index c454c5d..8b2006a 100644 --- a/msgpack.pyx +++ b/msgpack.pyx @@ -173,7 +173,7 @@ cdef extern from "unpack.h": int template_execute(template_context* ctx, const_char_ptr data, size_t len, size_t* off) void template_init(template_context* ctx) - PyObject* template_data(template_context* ctx) + object template_data(template_context* ctx) def unpacks(object packed_bytes): @@ -183,7 +183,7 @@ def unpacks(object packed_bytes): cdef size_t off = 0 template_init(&ctx) template_execute(&ctx, p, len(packed_bytes), &off) - return <object> template_data(&ctx) + return template_data(&ctx) def unpack(object stream): """unpack from stream.""" |
