summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-05-27 13:53:14 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-05-27 15:34:02 +0200
commit925dec8d703fca9078a5c553f40dfb370162ef49 (patch)
treed6f8f887fca8b3785b1ac7ac9701f346bb6378f1 /string.c
parentccf2b7c5b89ba4b40f9ed4b9eef95d7bd4867538 (diff)
Rename `rb_shape_set_shape_id` in `rb_obj_set_shape_id`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13450
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/string.c b/string.c
index a922c9269a..faa4a16106 100644
--- a/string.c
+++ b/string.c
@@ -959,8 +959,7 @@ static VALUE
setup_fake_str(struct RString *fake_str, const char *name, long len, int encidx)
{
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|STR_NOFREE|STR_FAKESTR;
-
- rb_shape_set_shape_id((VALUE)fake_str, 0);
+ RBASIC_SET_SHAPE_ID((VALUE)fake_str, ROOT_SHAPE_ID);
if (!name) {
RUBY_ASSERT_ALWAYS(len == 0);