Skip to content

Commit f523e6a

Browse files
committed
Fix windows builds (again)
1 parent d86e838 commit f523e6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/jit/_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def _dump_footer(
1111
groups: dict[str, _stencils.StencilGroup], symbols: dict[str | None, int]
1212
) -> typing.Iterator[str]:
13-
symbol_mask_size = math.ceil(len(symbols) / 32)
13+
symbol_mask_size = max(math.ceil(len(symbols) / 32), 1)
1414
yield f"typedef uint32_t SymbolMask[{symbol_mask_size}];"
1515
yield ""
1616
yield "typedef struct {"

0 commit comments

Comments
 (0)