Skip to content

Commit

Permalink
Merge pull request #26 from katef/main
Browse files Browse the repository at this point in the history
Merge lx bugfix from upstream
  • Loading branch information
katef authored May 9, 2024
2 parents 80b80a6 + f40c58a commit 3e3950b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lx/print/c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,9 @@ lx_print_c(FILE *f, const struct ast *ast)
fprintf(f, "{\n");
fprintf(f, "\tassert(lx != NULL);\n");
fprintf(f, "\tassert(p != NULL);\n");
fprintf(f, "\tlx->end.col = 1;\n");
if (~api_exclude & API_POS) {
fprintf(f, "\tlx->end.col = 1;\n");
}
fprintf(f, "\tlx->p = p;\n");
fprintf(f, "}\n");
}
Expand Down

0 comments on commit 3e3950b

Please sign in to comment.