aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 11:37:19 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 11:37:19 +0000
commita03e9fd9fabf20012482dd2be4ed2e5b466b59ec (patch)
tree1a3de74d20819c95fbb90025e07bc0fc518305f8 /compile.c
parentee712414aaba571bd8002781e91eea54a36ea943 (diff)
downloadruby-a03e9fd9fabf20012482dd2be4ed2e5b466b59ec.tar.gz
Remove RNODE cast from NODE utility functions
Now, casting NODE to VALUE is not recommended. This change requires an explicit cast from VALUE to NODE to use the NODE utility functions such as `nd_type`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 7228defdf0..3eb23ea965 100644
--- a/compile.c
+++ b/compile.c
@@ -4227,7 +4227,7 @@ setup_args(rb_iseq_t *iseq, LINK_ANCHOR *const args, const NODE *argn,
if (nsplat > 1) {
int i;
for (i=1; i<nsplat; i++) {
- ADD_INSN(args_splat, nd_line(args), concatarray);
+ ADD_INSN(args_splat, nd_line(RNODE(args)), concatarray);
}
}