From 9b462aec4af0fbf9d82cbd3efe1d2cfe15f5e539 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Oct 2022 19:33:19 +0900 Subject: [PATCH] Follow up "Rework `first_lineno` to be `int`." --- template/prelude.c.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl index 58453636bf..428c9f4d01 100644 --- a/template/prelude.c.tmpl +++ b/template/prelude.c.tmpl @@ -193,7 +193,7 @@ prelude_eval(VALUE code, VALUE name, int line) }; rb_ast_t *ast = prelude_ast(name, code, line); - rb_iseq_eval(rb_iseq_new_with_opt(&ast->body, name, name, Qnil, INT2FIX(line), + rb_iseq_eval(rb_iseq_new_with_opt(&ast->body, name, name, Qnil, line, NULL, 0, ISEQ_TYPE_TOP, &optimization)); rb_ast_dispose(ast); }