1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Follow up "Rework first_lineno to be int."

This commit is contained in:
Nobuyoshi Nakada 2022-10-28 19:33:19 +09:00
parent 1de8a42869
commit 9b462aec4a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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);
}