1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add assertion for embedded to embedded ivar copy

This commit is contained in:
Jemma Issroff 2022-06-10 15:19:53 -04:00 committed by Aaron Patterson
parent 9ed9cc9852
commit fc484be5e5
Notes: git 2022-06-11 05:48:04 +09:00

View file

@ -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;