From c120db4547592a0b96b14d1fcd372968442032b2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 3 Jun 2013 08:16:27 +0000 Subject: * 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 --- vm_insnhelper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_insnhelper.c') 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 */ -- cgit v1.2.3