summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-28 19:33:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-28 19:33:19 +0900
commit9b462aec4af0fbf9d82cbd3efe1d2cfe15f5e539 (patch)
treecd0c5d3e256c8e5449087ad96c48b25a77370a44 /template
parent1de8a4286950b554093e4fea4ace85a312a7fce8 (diff)
downloadruby-9b462aec4af0fbf9d82cbd3efe1d2cfe15f5e539.tar.gz
Follow up "Rework `first_lineno` to be `int`."
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 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);
}