diff options
| author | Naoki INADA <inada-n@eagle> | 2009-06-22 19:49:02 +0900 |
|---|---|---|
| committer | Naoki INADA <inada-n@eagle> | 2009-06-22 19:49:02 +0900 |
| commit | 46d7c656214073cde4c458c7cf1eb03e2d33dbd9 (patch) | |
| tree | 2e14d0fe22621686a89ba3896a31d3cb16b0ef22 /python/msgpack/unpack.h | |
| parent | 87f5df1503e70efd2bb9e9565259f1ed37a45933 (diff) | |
| download | msgpack-python-46d7c656214073cde4c458c7cf1eb03e2d33dbd9.tar.gz | |
Fix compile error.
Diffstat (limited to 'python/msgpack/unpack.h')
| -rw-r--r-- | python/msgpack/unpack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/msgpack/unpack.h b/python/msgpack/unpack.h index daeb54c..b753493 100644 --- a/python/msgpack/unpack.h +++ b/python/msgpack/unpack.h @@ -28,7 +28,7 @@ using namespace std; struct array_context { unsigned int size; unsigned int last; - stack_item(unsigned int size) : size(size), last(0) + array_context(unsigned int size) : size(size), last(0) {} }; struct unpack_user { @@ -116,7 +116,7 @@ static inline int template_callback_false(unpack_user* u, msgpack_unpack_object* static inline int template_callback_array(unpack_user* u, unsigned int n, msgpack_unpack_object* o) { if (n > 0) { - u->array_stack.push(stack_item(n)); + u->array_stack.push(array_context(n)); *o = PyList_New(n); } else { |
