Fix parent tracking for MAPs
This commit is contained in:
parent
cab6950b6e
commit
030c364615
1 changed files with 3 additions and 0 deletions
|
|
@ -158,6 +158,9 @@ empack_parse(empack_t *empack, const void *msgpack, uint32_t len)
|
||||||
for (uint32_t i = 0; i < pmap->pair_count; i++) {
|
for (uint32_t i = 0; i < pmap->pair_count; i++) {
|
||||||
pmap->pairs[i].key.type = EMPACK_TYPE_ERROR;
|
pmap->pairs[i].key.type = EMPACK_TYPE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tokens_needed += pmap->pair_count * 2;
|
||||||
|
parent = cur;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue