rb_imemo_fields_ptr: assume embedded

This commit is contained in:
Jean Boussier authored and Jean Boussier committed 2026-07-15 20:52:47 +02:00
1 parent 6e842889ce
commit efb3a73445
2 files changed
+3 -6
Notes: git 2026-07-15 18:53:25 +00:00

No files matched your search

+2
View File
@@ -2154,7 +2154,9 @@ obj_fields_each(VALUE obj, rb_ivar_foreach_callback_func *func, st_data_t arg, b
.ivar_only = ivar_only,
};
VALUE fields_obj = ROBJECT_FIELDS_OBJ(obj);
shape_id_t shape_id = RBASIC_SHAPE_ID(obj);
if (rb_shape_complex_p(shape_id)) {
st_foreach_safe(ROBJECT_FIELDS_HASH(obj), each_hash_iv, (st_data_t)&itr_data);
}