Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Dec 20, 2023
1 parent 4c701e6 commit 93e47b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/c/pgf/parser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ void PgfLRTableMaker::print_production(CCat *ccat, Production *prod)
ref<PgfDTyp> type = prod->lin->absfun->type;
printer.nprintf(37, "?%zu -> ", ccat->id);
printer.puts(&prod->lin->name);
printer.puts("[");
printer.nprintf(37, "/%zu[", prod->index);
PgfDBMarshaller m;
size_t args_start = type->hypos->len * prod->index;
for (size_t i = 0; i < type->hypos->len; i++) {
Expand Down Expand Up @@ -752,6 +752,9 @@ void PgfLRTableMaker::predict(State *state, Fold fold, Item *item, ref<PgfText>
return true;
};
probspace_iter(abstr->funs_by_cat, cat, f, false);
} else {
Item *new_item = new(item,ccat,lin_idx) Item;
process(state,fold,new_item);
}

if (fold == PROBE) {
Expand Down

0 comments on commit 93e47b6

Please sign in to comment.