calculate result bit_length of h_bind and h_left and friends properly
This commit is contained in:
parent
e01d10f0ab
commit
57b3495d5e
3 changed files with 28 additions and 3 deletions
|
|
@ -49,10 +49,12 @@ static HParseResult *parse_bind(void *be_, HParseState *state) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
res = h_do_parse(kx, state);
|
||||
HParseResult *res2 = h_do_parse(kx, state);
|
||||
if(res2)
|
||||
res2->bit_length = 0; // recalculate
|
||||
|
||||
h_delete_arena(arena);
|
||||
return res;
|
||||
return res2;
|
||||
}
|
||||
|
||||
static const HParserVtable bind_vt = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue