Skip to content

Commit

Permalink
Revert change to explicitly specify length
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Oct 18, 2024
1 parent 8e47990 commit 6ffc678
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 @@ -31,7 +31,7 @@ def _dump_footer(
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(symbols), 1)}] = {{"
if symbols:
for symbol, ordinal in symbols.items():
yield f" [{ordinal}] = &{symbol},"
Expand Down

0 comments on commit 6ffc678

Please sign in to comment.