summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-13 03:01:18 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-13 03:01:18 +0000
commit589042c06319e854b4a23e609fc574f34d4ff197 (patch)
tree27abf68d2d1ca93fc30d2cd0b1ff068c244264d2 /compile.c
parent31dc65b2750e15e5a55a87e87e0d41e935ec7d3a (diff)
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index aff4abe745..731b05323b 100644
--- a/compile.c
+++ b/compile.c
@@ -8786,7 +8786,6 @@ ibf_load_code(const struct ibf_load *load, const rb_iseq_t *iseq, const struct r
/* 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");