From 576252ae9d2b5e9601897eeca3aa2f25353068fc Mon Sep 17 00:00:00 2001 From: wanabe Date: Tue, 4 May 2010 14:10:09 +0000 Subject: * compile.c (iseq_build_body): update iseq->ic_size. a patch from Tomoyuki Chikanaga. see #3236. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compile.c') diff --git a/compile.c b/compile.c index f1a04feaba..f3e43fc3b7 100644 --- a/compile.c +++ b/compile.c @@ -5269,6 +5269,8 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor, break; case TS_IC: argv[j] = op; + if (NUM2INT(op) >= iseq->ic_size) + iseq->ic_size = NUM2INT(op) + 1; break; case TS_ID: argv[j] = rb_convert_type(op, T_SYMBOL, -- cgit v1.2.3