summaryrefslogtreecommitdiff
path: root/msgpack/unpack.h
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@eagle>2009-06-22 19:49:02 +0900
committerNaoki INADA <inada-n@eagle>2009-06-22 19:49:02 +0900
commit8e850dca4ae7481df612e12fd3bf6391f488decf (patch)
tree77cb06e0a3402a79f80598e19839ccc9f2f0dee1 /msgpack/unpack.h
parentd44108c70977c859a96caa8847ec2514f2313fdd (diff)
downloadmsgpack-python-8e850dca4ae7481df612e12fd3bf6391f488decf.tar.gz
Fix compile error.
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r--msgpack/unpack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h
index daeb54c..b753493 100644
--- a/msgpack/unpack.h
+++ b/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 {