summaryrefslogtreecommitdiffstats
path: root/Python/ast_opt.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandt@python.org>2021-04-30 00:19:28 (GMT)
committerGitHub <noreply@github.com>2021-04-30 00:19:28 (GMT)
commitdbe60ee09dc5a624cfb78dff61ecf050a5b3f105 (patch)
treecb0850e50916b666879770be4fb42b473db357e8 /Python/ast_opt.c
parent87655e2cf58c543914ea05ebe5a0377441da1ef2 (diff)
downloadcpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.zip
cpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.tar.gz
cpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.tar.bz2
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 254dd64..c1fdea3 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: