aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 13:59:34 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 13:59:34 +0000
commit0bd3f0080cca094dd2fcd72b72988a0a0934a484 (patch)
tree55fe45819a9925f32e670215b8302674b12faf4a /compile.c
parent4a6a52ecc4ac00a73929a11d385eb3e7b4062301 (diff)
downloadruby-0bd3f0080cca094dd2fcd72b72988a0a0934a484.tar.gz
compile.c (setup_args): Fix a typo
* compile.c (setup_args): In this function, an argument of nd_line is argn except this line. And argn is a pointer of NODE. So I think this is a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60649 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 3eb23ea965..4bcbd0cec8 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(RNODE(args)), concatarray);
+ ADD_INSN(args_splat, nd_line(argn), concatarray);
}
}