[前][次][番号順一覧][スレッド一覧]

ruby-changes:74283

From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Oct 2022 19:44:37 +0900 (JST)
Subject: [ruby-changes:74283] 9b462aec4a (master): Follow up "Rework `first_lineno` to be `int`."

https://git.ruby-lang.org/ruby.git/commit/?id=9b462aec4a

From 9b462aec4af0fbf9d82cbd3efe1d2cfe15f5e539 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 28 Oct 2022 19:33:19 +0900
Subject: 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) https://github.com/ruby/ruby/blob/trunk/template/prelude.c.tmpl#L193
     };
 
     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);
 }
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]