diff options
author | Jean Boussier <[email protected]> | 2023-11-06 11:10:37 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2023-11-06 12:39:52 +0100 |
commit | 4a6bdbd6dc160c4614105f0478d398b2222429e0 () | |
tree | acb48dd9fa5f6eec673cdde79fcf6fbe0bc49338 /variable.c | |
parent | 66769dcd12b1f323e7d38ab1280700a6ffe509d7 (diff) |
generic_ivar_set: properly check for TOO_COMPLEX on capacity transition
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1516,7 +1516,7 @@ generic_ivar_set(VALUE obj, ID id, VALUE val) RUBY_ASSERT(index == shape->capacity); rb_shape_t *next_shape = rb_shape_transition_shape_capa(shape); - if (shape->type == SHAPE_OBJ_TOO_COMPLEX) { rb_evict_ivars_to_hash(obj, shape); rb_complex_ivar_set(obj, id, val); FL_SET_RAW(obj, FL_EXIVAR); |