summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 08:16:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 08:16:27 +0000
commitc120db4547592a0b96b14d1fcd372968442032b2 (patch)
treef144d795e7470555721f822440338057250f175a /vm_insnhelper.c
parent7a8a7864b1d83e6d17a42f4c015b81b62a02fbe2 (diff)
* vm_insnhelper.c (vm_yield_setup_block_args): add comment for r41041.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 86f2d07cd8..d7515cd177 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2213,6 +2213,8 @@ vm_yield_setup_block_args(rb_thread_t *th, const rb_iseq_t * iseq,
}
else {
argv[0] = arg0; /* rb_check_array_type(arg0) may change argv */
+ /* when to_ary method is invoked and the stack is overwritten, */
+ /* so need to restore argv[0]. */
}
/* keyword argument */