mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
e8249be9fc
commit
576252ae9d
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue May 4 22:59:48 2010 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* compile.c (iseq_build_body): update iseq->ic_size.
|
||||
a patch from Tomoyuki Chikanaga. see #3236.
|
||||
|
||||
Tue May 4 18:51:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* error.c (name_err_mesg_to_str): preserve encoding of inspection.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue