use H_MAKE_SEQN in base64_sem1

This commit is contained in:
Sven M. Hallberg 2013-02-17 16:48:35 +01:00
parent 662357ccb4
commit d9c2c921c4

View file

@ -56,9 +56,7 @@ H_ACT_APPLY(act_index0, h_act_index, 0);
// General-form action to turn a block of base64 digits into bytes.
const HParsedToken *act_base64_n(int n, const HParseResult *p)
{
HParsedToken *res = h_arena_malloc(p->arena, sizeof(HParsedToken));
res->token_type = TT_SEQUENCE;
res->seq = h_carray_new_sized(p->arena, n);
HParsedToken *res = H_MAKE_SEQN(n);
HParsedToken **digits = h_seq_elements(p->ast);