Skip to content

Commit

Permalink
Update vm_insnhelper.c
Browse files Browse the repository at this point in the history
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
  • Loading branch information
2 people authored and tenderlove committed Nov 9, 2020
1 parent 5582c5a commit 2324584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_insnhelper.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2324584

Please sign in to comment.