summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/prelude.c.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl
index 3cf74eda12..b144f8ab0a 100644
--- a/template/prelude.c.tmpl
+++ b/template/prelude.c.tmpl
@@ -161,11 +161,11 @@ prelude_eval(VALUE code, VALUE name, int line)
};
rb_ast_t *ast = rb_parser_compile_string_path(rb_parser_new(), name, code, line);
- if (!ast->root) {
+ if (!ast->body.root) {
rb_ast_dispose(ast);
rb_exc_raise(rb_errinfo());
}
- rb_iseq_eval(rb_iseq_new_with_opt(ast->root, name, name, Qnil, INT2FIX(line),
+ rb_iseq_eval(rb_iseq_new_with_opt(ast->body.root, name, name, Qnil, INT2FIX(line),
NULL, ISEQ_TYPE_TOP, &optimization));
rb_ast_dispose(ast);
}