Skip to content

Commit

Permalink
Fix internal compiler error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorusso committed Sep 10, 2024
1 parent 0b2e77d commit f2cab0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/jit/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _dump_footer(groups: dict[str, _stencils.StencilGroup]) -> typing.Iterator[s
yield f" [{opname}] = {group.as_c(opname)},"
yield "};"
yield ""
yield "static const void * const symbols_map[] = {"
yield f"static const void * const symbols_map[{max(len(_stencils.known_symbols), 1)}] = {{"
for symbol, ordinal in _stencils.known_symbols.items():
yield f" [{ordinal}] = &{symbol},"
yield "};"
Expand Down

0 comments on commit f2cab0c

Please sign in to comment.