Skip to content
Snippets Groups Projects
Commit fb5122ec authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

fix result bit_length for LR backends

parent 4f455aa9
No related branches found
No related tags found
No related merge requests found
...@@ -351,7 +351,9 @@ HParseResult *h_lrengine_result(HLREngine *engine) ...@@ -351,7 +351,9 @@ HParseResult *h_lrengine_result(HLREngine *engine)
// on top of the stack is the start symbol's semantic value // on top of the stack is the start symbol's semantic value
assert(!h_slist_empty(engine->stack)); assert(!h_slist_empty(engine->stack));
HParsedToken *tok = engine->stack->head->elem; HParsedToken *tok = engine->stack->head->elem;
return make_result(engine->arena, tok); HParseResult *res = make_result(engine->arena, tok);
res->bit_length = engine->input.index * 8;
return res;
} else { } else {
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment