diff options
author | Aaron Patterson <[email protected]> | 2020-11-06 12:51:13 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-11-09 09:44:16 -0800 |
commit | 2324584d465fc36bc5ae9d8a10235f35d308552c (patch) | |
tree | 2311d26c50347148c86fe823cfd2cd6f06b0631b /vm_insnhelper.c | |
parent | 5582c5a2327d824e872f7f5bd22330094f189d66 (diff) |
Update vm_insnhelper.c
Co-authored-by: Takashi Kokubun <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3740
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index d54a7e3b6d..398bbd741e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -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); |