[前][次][番号順一覧][スレッド一覧]

ruby-changes:39574

From: nobu <ko1@a...>
Date: Sat, 22 Aug 2015 00:31:50 +0900 (JST)
Subject: [ruby-changes:39574] nobu:r51655 (trunk): vm_insnhelper.c: use update argc

nobu	2015-08-22 00:31:39 +0900 (Sat, 22 Aug 2015)

  New Revision: 51655

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51655

  Log:
    vm_insnhelper.c: use update argc
    
    * vm_insnhelper.c (vm_invoke_block): use ci->argc updated by
      CALLER_SETUP_ARG().  [Bug #11451]

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 51654)
+++ vm_insnhelper.c	(revision 51655)
@@ -2336,9 +2336,9 @@ vm_invoke_block(rb_thread_t *th, rb_cont https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2336
     }
     else {
 	VALUE val;
-	int argc = ci->argc;
+	int argc;
 	CALLER_SETUP_ARG(th->cfp, ci);
-
+	argc = ci->argc;
 	val = vm_yield_with_cfunc(th, block, block->self, argc, STACK_ADDR_FROM_TOP(argc), 0);
 	POPN(argc); /* TODO: should put before C/yield? */
 	return val;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]