From e010bf167478d3f62ee37aa8e0fc15e474e957ba Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 3 Nov 2023 11:04:25 -0400 Subject: Fix typo in variable.c --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3