diff options
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 98ca16cdd3..bd3620a95f 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -577,7 +577,7 @@ vm_setivar(VALUE obj, ID id, VALUE val, IC ic, rb_call_info_t *ci, int is_attr) VALUE *ptr = ROBJECT_IVPTR(obj); if (index < len) { - ptr[index] = val; + OBJ_WRITE(obj, &ptr[index], val); return val; /* inline cache hit */ } } |