diff options
| author | Joel Nothman <joel.nothman@gmail.com> | 2012-09-23 19:37:28 +1000 |
|---|---|---|
| committer | Joel Nothman <joel.nothman@gmail.com> | 2012-09-23 19:37:28 +1000 |
| commit | 77942514db0c5a80e9f3f9bcb1e1939ecc8705e6 (patch) | |
| tree | d3fdec62e6250cf329284a309dd468f019583d05 /msgpack/unpack_template.h | |
| parent | b06ed8eb75563111ef88a119f9f7a45e67f61736 (diff) | |
| download | msgpack-python-77942514db0c5a80e9f3f9bcb1e1939ecc8705e6.tar.gz | |
Implement object_pairs_hook
Diffstat (limited to 'msgpack/unpack_template.h')
| -rw-r--r-- | msgpack/unpack_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index 5495a51..6080a51 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -357,7 +357,7 @@ _push: c->ct = CT_MAP_VALUE; goto _header_again; case CT_MAP_VALUE: - if(construct_cb(_map_item)(user, &c->obj, c->map_key, obj) < 0) { goto _failed; } + if(construct_cb(_map_item)(user, c->count, &c->obj, c->map_key, obj) < 0) { goto _failed; } if(++c->count == c->size) { obj = c->obj; construct_cb(_map_end)(user, &obj); |
