aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:22 +0000
commitd0c6bd5624941d65eb30bb3e15fd330480971d59 (patch)
tree91b9bc9bdf4657afdc2e9aa71994952b37ef1678 /template
parent077800f356235ad633732a374dc6fbfdf8dc11f3 (diff)
downloadruby-d0c6bd5624941d65eb30bb3e15fd330480971d59.tar.gz
make rb_iseq_new* accept rb_ast_body_t instead of NODE*
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/prelude.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl
index b144f8ab0a..b12a27059c 100644
--- a/template/prelude.c.tmpl
+++ b/template/prelude.c.tmpl
@@ -165,7 +165,7 @@ prelude_eval(VALUE code, VALUE name, int line)
rb_ast_dispose(ast);
rb_exc_raise(rb_errinfo());
}
- rb_iseq_eval(rb_iseq_new_with_opt(ast->body.root, name, name, Qnil, INT2FIX(line),
+ rb_iseq_eval(rb_iseq_new_with_opt(&ast->body, name, name, Qnil, INT2FIX(line),
NULL, ISEQ_TYPE_TOP, &optimization));
rb_ast_dispose(ast);
}