We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb7c4f commit 4c0a276Copy full SHA for 4c0a276
iseq.c
@@ -594,11 +594,11 @@ set_relation(rb_iseq_t *iseq, const rb_iseq_t *piseq)
594
body->local_iseq = iseq;
595
}
596
else if (piseq) {
597
- body->local_iseq = ISEQ_BODY(piseq)->local_iseq;
+ RB_OBJ_WRITE(iseq, &body->local_iseq, ISEQ_BODY(piseq)->local_iseq);
598
599
600
if (piseq) {
601
- body->parent_iseq = piseq;
+ RB_OBJ_WRITE(iseq, &body->parent_iseq, piseq);
602
603
604
if (type == ISEQ_TYPE_MAIN) {
0 commit comments