aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:20 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:20 +0000
commit503b858cefcc945405185c3c70dd07a60f920469 (patch)
tree10996cd780b341156b2fb3526e77f682f6581f0d /vm_eval.c
parenta6794c4b01ceb96d3d36f8854309e2e3b878f7e3 (diff)
downloadruby-503b858cefcc945405185c3c70dd07a60f920469.tar.gz
node.h: define rb_ast_body_t and restructure rb_ast_t
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 87fee5aa64..d9b2ec06b3 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1272,8 +1272,8 @@ eval_make_iseq(VALUE src, VALUE fname, int line, const rb_binding_t *bind,
rb_parser_set_context(parser, base_block, FALSE);
ast = rb_parser_compile_string_path(parser, fname, src, line);
- if (ast->root) {
- iseq = rb_iseq_new_with_opt(ast->root,
+ if (ast->body.root) {
+ iseq = rb_iseq_new_with_opt(ast->body.root,
parent->body->location.label,
fname, realpath, INT2FIX(line),
parent, ISEQ_TYPE_EVAL, NULL);