Commit b6f0d053 authored by Benjamin Peterson's avatar Benjamin Peterson

remove casts

parent 4f09e615
...@@ -2683,12 +2683,12 @@ ast_for_exec_stmt(struct compiling *c, const node *n) ...@@ -2683,12 +2683,12 @@ ast_for_exec_stmt(struct compiling *c, const node *n)
if (expr1->kind == Tuple_kind && n_children < 4 && if (expr1->kind == Tuple_kind && n_children < 4 &&
(asdl_seq_LEN(expr1->v.Tuple.elts) == 2 || (asdl_seq_LEN(expr1->v.Tuple.elts) == 2 ||
asdl_seq_LEN(expr1->v.Tuple.elts) == 3)) { asdl_seq_LEN(expr1->v.Tuple.elts) == 3)) {
/* Backwards compatibility: pass exec args as a tuple */ /* Backwards compatibility: passing exec args as a tuple */
globals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 1); globals = asdl_seq_GET(expr1->v.Tuple.elts, 1);
if (asdl_seq_LEN(expr1->v.Tuple.elts) == 3) { if (asdl_seq_LEN(expr1->v.Tuple.elts) == 3) {
locals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 2); locals = asdl_seq_GET(expr1->v.Tuple.elts, 2);
} }
expr1 = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 0); expr1 = asdl_seq_GET(expr1->v.Tuple.elts, 0);
} }
if (n_children >= 4) { if (n_children >= 4) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment