mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update vm_insnhelper.c
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
This commit is contained in:
parent
5582c5a232
commit
2324584d46
Notes:
git
2020-11-10 02:44:52 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ vm_setivar(VALUE obj, ID id, VALUE val, const rb_iseq_t *iseq, IVC ic, const str
|
|||
VALUE *ptr = ROBJECT_IVPTR(obj);
|
||||
index = !is_attr ? ic->entry->index : vm_cc_attr_index(cc)-1;
|
||||
|
||||
if (index >= ROBJECT_NUMIV(obj)) {
|
||||
if (index >= ROBJECT_NUMIV(obj)) {
|
||||
st_table * iv_idx_tbl = ROBJECT_IV_INDEX_TBL(obj);
|
||||
rb_init_iv_list(obj, ROBJECT_NUMIV(obj), (uint32_t)iv_idx_tbl->num_entries, iv_idx_tbl);
|
||||
ptr = ROBJECT_IVPTR(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue