summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-05-27 13:16:50 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-05-27 15:34:02 +0200
commita80a5000ab9ac08b9b74cfee559bba5c349b1808 (patch)
tree793b133e7272d2ba55a2e6254aec239cc1ed3ae2 /object.c
parent97f44ac54e197bca43b54dd65e116cb9ea22cda0 (diff)
Refactor `rb_obj_shape` out.
It still exists but only in `shape.c`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13450
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index d49ffd96d6..ffe1c74ee3 100644
--- a/object.c
+++ b/object.c
@@ -128,7 +128,7 @@ rb_class_allocate_instance(VALUE klass)
T_OBJECT | ROBJECT_EMBED | (RGENGC_WB_PROTECTED_OBJECT ? FL_WB_PROTECTED : 0), size, 0);
VALUE obj = (VALUE)o;
- RUBY_ASSERT(rb_obj_shape(obj)->type == SHAPE_ROOT);
+ RUBY_ASSERT(RSHAPE_TYPE_P(RBASIC_SHAPE_ID(obj), SHAPE_ROOT));
RBASIC_SET_SHAPE_ID(obj, rb_shape_root(rb_gc_heap_id_for_size(size)));