Skip to content

Commit 8cbca05

Browse files
committed
Fix internal compiler error on Windows
1 parent 4d95512 commit 8cbca05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/jit/_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _dump_footer(groups: dict[str, _stencils.StencilGroup]) -> typing.Iterator[s
2727
yield f" [{opname}] = {group.as_c(opname)},"
2828
yield "};"
2929
yield ""
30-
yield "static const void * const symbols_map[] = {"
30+
yield f"static const void * const symbols_map[{max(len(_stencils.known_symbols), 1)}] = {{"
3131
for symbol, ordinal in _stencils.known_symbols.items():
3232
yield f" [{ordinal}] = &{symbol},"
3333
yield "};"

0 commit comments

Comments
 (0)