summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorDavid Rubin <87927264+Rexicon226@users.noreply.github.com>2024-04-24 17:16:06 (GMT)
committerGitHub <noreply@github.com>2024-04-24 17:16:06 (GMT)
commit9b280ab0ab97902d55ea3bde66b2e23f8b23959f (patch)
tree41f9ffb192f2ebd6cfe5dad37581892f52502a3b /Tools
parent1acd2497983f1a78dffd6e5b3e0f5dd0920a550f (diff)
downloadcpython-9b280ab0ab97902d55ea3bde66b2e23f8b23959f.zip
cpython-9b280ab0ab97902d55ea3bde66b2e23f8b23959f.tar.gz
cpython-9b280ab0ab97902d55ea3bde66b2e23f8b23959f.tar.bz2
gh-116988: Remove duplicates of `annotated_rhs` in the Grammar (#117004)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/peg_generator/pegen/c_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py
index 7cdd5de..84ed183 100644
--- a/Tools/peg_generator/pegen/c_generator.py
+++ b/Tools/peg_generator/pegen/c_generator.py
@@ -253,7 +253,7 @@ class CCallMakerVisitor(GrammarVisitor):
else:
return FunctionCall(
function=f"_PyPegen_lookahead",
- arguments=[positive, call.function, *call.arguments],
+ arguments=[positive, f"(void *(*)(Parser *)) {call.function}", *call.arguments],
return_type="int",
)