Skip to content

Commit 5646f86

Browse files
committed
gh-153568: Fix FIRST-set dispatch typing
1 parent 456eb6f commit 5646f86

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
@@ -885,8 +885,8 @@ def _visit_rhs_with_first_set_mask(
885885
self.print("_first_set_mask = 0;")
886886
self.print("switch (_current_token_type) {")
887887
with self.indent():
888-
for mask, token_types in sorted(masks.items()):
889-
for token_type in sorted(token_types):
888+
for mask, mask_token_types in sorted(masks.items()):
889+
for token_type in sorted(mask_token_types):
890890
self.print(f"case {token_type}:")
891891
with self.indent():
892892
self.print(f"_first_set_mask = 0x{mask:x}ULL;")

0 commit comments

Comments
 (0)