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:
parent
9ed9cc9852
commit
fc484be5e5
Notes:
git
2022-06-11 05:48:04 +09:00
1 changed files with 1 additions and 0 deletions
1
object.c
1
object.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue