aboutsummaryrefslogtreecommitdiff
path: root/Python/ast_opt.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandt@python.org>2021-04-29 17:19:28 -0700
committerGitHub <noreply@github.com>2021-04-29 17:19:28 -0700
commitdbe60ee09dc5a624cfb78dff61ecf050a5b3f105 (patch)
treecb0850e50916b666879770be4fb42b473db357e8 /Python/ast_opt.c
parent87655e2cf58c543914ea05ebe5a0377441da1ef2 (diff)
downloadcpython3-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.tar.gz
bpo-43892: Validate the first term of complex literal value patterns (GH-25735)
Diffstat (limited to 'Python/ast_opt.c')
-rw-r--r--Python/ast_opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index 254dd646c4..c1fdea3a88 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -825,7 +825,7 @@ astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state)
break;
case MatchAs_kind:
if (node_->v.MatchAs.pattern) {
- CALL(astfold_pattern, expr_ty, node_->v.MatchAs.pattern);
+ CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern);
}
break;
case MatchOr_kind: