diff options
author | Peter Zhu <[email protected]> | 2024-03-12 17:34:38 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-03-13 09:55:52 -0400 |
commit | c6089b56547daa61e0d20763bae3066fe311e91b (patch) | |
tree | c606846368c3d38d463f9ff005e807292c1473c0 /shape.c | |
parent | 88373fe2e85061f95532751bf311e33ab43cbcef (diff) |
Don't allow SHAPE_T_OBJECT in rb_shape_alloc_new_child
Diffstat (limited to 'shape.c')
-rw-r--r-- | shape.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -474,11 +474,11 @@ rb_shape_alloc_new_child(ID id, rb_shape_t * shape, enum shape_type shape_type) } break; case SHAPE_FROZEN: - case SHAPE_T_OBJECT: new_shape->next_iv_index = shape->next_iv_index; break; case SHAPE_OBJ_TOO_COMPLEX: case SHAPE_ROOT: + case SHAPE_T_OBJECT: rb_bug("Unreachable"); break; } |