diff options
author | Damien George <damien@micropython.org> | 2020-06-16 22:48:46 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-06-16 23:18:01 +1000 |
commit | 131b0de70a47861c266d2ac7c26ae643f679d2f7 (patch) | |
tree | 0597ae942332f3f6dfe48b72246b2c28e4f51516 /py/compile.c | |
parent | a3c89cf907a3c2b7235ea86e9a229335212b9020 (diff) |
py/grammar.h: Consolidate duplicate sub-rules for :test and =test.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c index da5c9190a..614e851a3 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2375,7 +2375,7 @@ STATIC void compile_trailer_paren_helper(compiler_t *comp, mp_parse_node_t pn_ar dblstar_args_node = pns_arg; } else if (MP_PARSE_NODE_STRUCT_KIND(pns_arg) == PN_argument) { #if MICROPY_PY_ASSIGN_EXPR - if (MP_PARSE_NODE_IS_STRUCT_KIND(pns_arg->nodes[1], PN_argument_4)) { + if (MP_PARSE_NODE_IS_STRUCT_KIND(pns_arg->nodes[1], PN_argument_3)) { compile_namedexpr_helper(comp, pns_arg->nodes[0], ((mp_parse_node_struct_t *)pns_arg->nodes[1])->nodes[0]); n_positional++; } else |