summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-26 23:32:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-26 23:32:12 +0000
commitf52f03394d9f439a6ecceca9d63804082a0f3a42 (patch)
tree7fbf70bc67fb7574a501684cc0957c5da2112075 /compile.c
parenteeb409a257629698b101c49813e08c008136d494 (diff)
merge revision(s) 34633: [Backport #5124]
* insns.def (splatarray): make new array if flag is set. * compile.c (iseq_compile_each): make new array with splat. [ruby-core:21901][Feature #1125] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36228 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 71059de085..f4211ed860 100644
--- a/compile.c
+++ b/compile.c
@@ -4629,7 +4629,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_SPLAT:{
COMPILE(ret, "splat", node->nd_head);
- ADD_INSN1(ret, nd_line(node), splatarray, Qfalse);
+ ADD_INSN1(ret, nd_line(node), splatarray, Qtrue);
if (poped) {
ADD_INSN(ret, nd_line(node), pop);