summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-06-19 13:17:23 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-19 13:17:23 +0900
commitef2b26cc3eaed06c5c9d4ef2c6d8669ff357afa4 (patch)
treee3b198eaf956bb4ba0008282d5fed67d6ff128da
parent912edb47162626bf039ee649c8a1d05b2d7410ef (diff)
`struct iseq_catch_table` is packed
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 477f082144..bb0b5ac681 100644
--- a/compile.c
+++ b/compile.c
@@ -13307,7 +13307,7 @@ ibf_load_catch_table(const struct ibf_load *load, ibf_offset_t catch_table_offse
table->entries[i].sp = (unsigned int)ibf_load_small_value(load, &reading_pos);
rb_iseq_t *catch_iseq = (rb_iseq_t *)ibf_load_iseq(load, (const rb_iseq_t *)(VALUE)iseq_index);
- RB_OBJ_WRITE(parent_iseq, &table->entries[i].iseq, catch_iseq);
+ RB_OBJ_WRITE(parent_iseq, UNALIGNED_MEMBER_PTR(&table->entries[i], iseq), catch_iseq);
}
return table;
}