ruby-changes:67379
From: Nobuyoshi <ko1@a...>
Date: Tue, 31 Aug 2021 11:17:45 +0900 (JST)
Subject: [ruby-changes:67379] 181207e830 (master): Constify line_node in iseq_compile_each0
https://git.ruby-lang.org/ruby.git/commit/?id=181207e830 From 181207e830cc8fb0fac78e9bcd4163c25831c600 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 31 Aug 2021 00:47:56 +0900 Subject: Constify line_node in iseq_compile_each0 --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 3663430..7976bd0 100644 --- a/compile.c +++ b/compile.c @@ -8145,7 +8145,7 @@ static int https://github.com/ruby/ruby/blob/trunk/compile.c#L8145 iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int popped) { const int line = (int)nd_line(node); - const NODE *line_node = node; + const NODE *const line_node = node; const enum node_type type = nd_type(node); struct rb_iseq_constant_body *const body = iseq->body; -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/