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

ruby-changes:45943

From: nobu <ko1@a...>
Date: Sat, 18 Mar 2017 22:15:20 +0900 (JST)
Subject: [ruby-changes:45943] nobu:r58014 (trunk): vm.c: fix up r58012

nobu	2017-03-18 22:15:15 +0900 (Sat, 18 Mar 2017)

  New Revision: 58014

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

  Log:
    vm.c: fix up r58012
    
    * vm.c (invoke_iseq_block_from_c): fix stack region length.

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 58013)
+++ vm.c	(revision 58014)
@@ -998,7 +998,7 @@ invoke_iseq_block_from_c(rb_thread_t *th https://github.com/ruby/ruby/blob/trunk/vm.c#L998
     th->passed_bmethod_me = NULL;
 
     CHECK_VM_STACK_OVERFLOW(cfp, argc);
-    cfp->sp = sp + i;
+    cfp->sp = sp + argc;
     for (i=0; i<argc; i++) {
 	sp[i] = argv[i];
     }

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

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