summaryrefslogtreecommitdiff
path: root/ruby_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_parser.c')
-rw-r--r--ruby_parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index 7b6f0dfbc3..c4b4ffc1a3 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -446,8 +446,7 @@ ruby_vm_frozen_core(void)
static rb_ast_t *
ast_new(VALUE nb)
{
- rb_ast_t *ast = (rb_ast_t *)rb_imemo_new(imemo_ast, 0, 0, 0, nb);
- return ast;
+ return IMEMO_NEW(rb_ast_t, imemo_ast, nb);
}
static VALUE