diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/ast/ast.c | 4 | ||||
-rw-r--r-- | ext/objspace/objspace.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/-test-/ast/ast.c b/ext/-test-/ast/ast.c index ead7400786..eab1cfb99a 100644 --- a/ext/-test-/ast/ast.c +++ b/ext/-test-/ast/ast.c @@ -198,10 +198,10 @@ node_children(rb_ast_t *ast, NODE *node) loop: return rb_ary_new_from_node_args(ast, 2, node->nd_cond, node->nd_body); case NODE_ITER: - goto iter; case NODE_FOR: - iter: return rb_ary_new_from_node_args(ast, 2, node->nd_iter, node->nd_body); + case NODE_FOR_MASGN: + return rb_ary_new_from_node_args(ast, 1, node->nd_var); case NODE_BREAK: goto jump; case NODE_NEXT: diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index e410941c7d..c791f3a7f7 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -382,6 +382,7 @@ count_nodes(int argc, VALUE *argv, VALUE os) COUNT_NODE(NODE_UNTIL); COUNT_NODE(NODE_ITER); COUNT_NODE(NODE_FOR); + COUNT_NODE(NODE_FOR_MASGN); COUNT_NODE(NODE_BREAK); COUNT_NODE(NODE_NEXT); COUNT_NODE(NODE_REDO); |