summaryrefslogtreecommitdiff
path: root/ext/stringio/stringio.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 01:00:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 02:51:49 +0900
commit8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70 (patch)
tree21d993f31deddd50f3bc717be2ddce433db0d9f0 /ext/stringio/stringio.c
parentc30f03d32833f38fedf41ecb08f1ade9c6657fef (diff)
Removed rb_cData entity
* Use the wrapper of rb_cObject instead of data access * Replaced rest of extentions * Updated the version guard for Data * Added the version guard of rb_cData
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3961
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r--ext/stringio/stringio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 0cc2f78787..6c86e8964d 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -1755,7 +1755,7 @@ Init_stringio(void)
rb_ext_ractor_safe(true);
#endif
- VALUE StringIO = rb_define_class("StringIO", rb_cData);
+ VALUE StringIO = rb_define_class("StringIO", rb_cObject);
rb_define_const(StringIO, "VERSION", rb_str_new_cstr(STRINGIO_VERSION));