Skip to content

Commit 739b3ee

Browse files
committed
Fix argument type mismatch
1 parent 150372d commit 739b3ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packcc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,7 +4125,7 @@ static bool_t generate(context_t *ctx) {
41254125
"}\n"
41264126
"\n"
41274127
"static void pcc_lr_memo_map__put(pcc_context_t *ctx, pcc_lr_memo_map_t *map, pcc_rule_t rule, pcc_lr_answer_t *answer) {\n"
4128-
" const size_t i = pcc_lr_memo_map__index(ctx->auxil, map, rule);\n"
4128+
" const size_t i = pcc_lr_memo_map__index(ctx, map, rule);\n"
41294129
" if (i != PCC_VOID_VALUE) {\n"
41304130
" pcc_lr_answer__destroy(ctx, map->buf[i].answer);\n"
41314131
" map->buf[i].answer = answer;\n"
@@ -4147,7 +4147,7 @@ static bool_t generate(context_t *ctx) {
41474147
"}\n"
41484148
"\n"
41494149
"static pcc_lr_answer_t *pcc_lr_memo_map__get(pcc_context_t *ctx, pcc_lr_memo_map_t *map, pcc_rule_t rule) {\n"
4150-
" const size_t i = pcc_lr_memo_map__index(ctx->auxil, map, rule);\n"
4150+
" const size_t i = pcc_lr_memo_map__index(ctx, map, rule);\n"
41514151
" return (i != PCC_VOID_VALUE) ? map->buf[i].answer : NULL;\n"
41524152
"}\n"
41534153
"\n"
@@ -4447,7 +4447,7 @@ static bool_t generate(context_t *ctx) {
44474447
" const size_t p = ctx->pos + ctx->cur;\n"
44484448
" pcc_bool_t b = PCC_TRUE;\n"
44494449
" pcc_lr_answer_t *a = pcc_lr_table__get_answer(ctx, &ctx->lrtable, p, rule);\n"
4450-
" pcc_lr_head_t *h = pcc_lr_table__get_head(ctx->auxil, &ctx->lrtable, p);\n"
4450+
" pcc_lr_head_t *h = pcc_lr_table__get_head(ctx, &ctx->lrtable, p);\n"
44514451
" if (h != NULL) {\n"
44524452
" if (a == NULL && rule != h->rule && pcc_rule_set__index(ctx->auxil, &h->invol, rule) == PCC_VOID_VALUE) {\n"
44534453
" b = PCC_FALSE;\n"

0 commit comments

Comments
 (0)