Skip to content

Commit 5a9fd28

Browse files
committed
gh-153568: Fix FIRST-set dispatch typing
1 parent 870c7df commit 5a9fd28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/peg_generator/pegen/c_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,8 @@ def _visit_rhs_with_first_set_mask(
814814
self.print("_first_set_mask = 0;")
815815
self.print("switch (_current_token_type) {")
816816
with self.indent():
817-
for mask, token_types in sorted(masks.items()):
818-
for token_type in sorted(token_types):
817+
for mask, mask_token_types in sorted(masks.items()):
818+
for token_type in sorted(mask_token_types):
819819
self.print(f"case {token_type}:")
820820
with self.indent():
821821
self.print(f"_first_set_mask = 0x{mask:x}ULL;")

0 commit comments

Comments
 (0)