summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-31 00:47:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-31 10:21:22 +0900
commit181207e830cc8fb0fac78e9bcd4163c25831c600 (patch)
tree20298ac9a9b11ba6db7618df6418d85c00dc97c6
parenta598730e79345e4f8cac6c6e26cf0572b1610e3c (diff)
downloadruby-181207e830cc8fb0fac78e9bcd4163c25831c600.tar.gz
Constify line_node in iseq_compile_each0
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 3663430f56..7976bd015e 100644
--- a/compile.c
+++ b/compile.c
@@ -8145,7 +8145,7 @@ static int
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;