diff options
author | Jemma Issroff <[email protected]> | 2022-06-10 15:19:53 -0400 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2022-06-10 13:47:42 -0700 |
commit | fc484be5e5a1e9fcdc74871106dbe13ba533b745 (patch) | |
tree | d3b2c4477daac7aecd4f2d29d2d26a138d16fd18 /object.c | |
parent | 9ed9cc9852a7cf12c71114c3c65b239c7af1518b (diff) |
Add assertion for embedded to embedded ivar copy
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6003
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -285,6 +285,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj) } // extended -> extended else { + RUBY_ASSERT(!(RBASIC(dest)->flags & ROBJECT_EMBED)); uint32_t src_len = ROBJECT(obj)->as.heap.numiv; uint32_t dst_len = ROBJECT(dest)->as.heap.numiv; |