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

ruby-changes:54155

From: tenderlove <ko1@a...>
Date: Thu, 13 Dec 2018 12:01:24 +0900 (JST)
Subject: [ruby-changes:54155] tenderlove:r66376 (trunk): Don't increment `code_index`

tenderlove	2018-12-13 12:01:18 +0900 (Thu, 13 Dec 2018)

  New Revision: 66376

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

  Log:
    Don't increment `code_index`
    
    `code_index` doesn't need to be incremented since the mark array has
    been removed.  Thanks for the patch ko1!
    
    [ruby-core:90456] [Bug #15406]

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 66375)
+++ compile.c	(revision 66376)
@@ -8786,7 +8786,6 @@ ibf_load_code(const struct ibf_load *loa https://github.com/ruby/ruby/blob/trunk/compile.c#L8786
 		/* code[code_index] = op; */
 		continue;
 	    }
-	    load_body->iseq_size = code_index + 1;
 	}
 	if (insn_len(insn) != op_index+1) {
 	    rb_raise(rb_eRuntimeError, "operand size mismatch");

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

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