aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-11-03 11:04:25 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-11-03 11:04:25 -0400
commite010bf167478d3f62ee37aa8e0fc15e474e957ba (patch)
treeef91af60df661fbab8c249e81764d10d6856eeeb /variable.c
parent81882ca42f2996c8d273f63270e06d7de09b2bd3 (diff)
downloadruby-e010bf167478d3f62ee37aa8e0fc15e474e957ba.tar.gz
Fix typo in variable.c
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index af7c554f49..414da14f11 100644
--- a/variable.c
+++ b/variable.c
@@ -1550,7 +1550,7 @@ generic_ivar_set(VALUE obj, ID id, VALUE val)
}
RB_VM_LOCK_LEAVE();
- RB_OBJ_WRITE(obj, &ivup.ivtbl->as.shape.ivptr[ivup.iv_index], val);
+ RB_OBJ_WRITE(obj, &ivar_lookup.ivtbl->as.shape.ivptr[index], val);
if (!found) {
rb_shape_set_shape(obj, shape);