diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-22 01:00:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-22 02:51:49 +0900 |
commit | 8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70 (patch) | |
tree | 21d993f31deddd50f3bc717be2ddce433db0d9f0 /ext/-test-/typeddata | |
parent | c30f03d32833f38fedf41ecb08f1ade9c6657fef (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/-test-/typeddata')
-rw-r--r-- | ext/-test-/typeddata/typeddata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/typeddata/typeddata.c b/ext/-test-/typeddata/typeddata.c index 374cbdf58d..2adfd56ae8 100644 --- a/ext/-test-/typeddata/typeddata.c +++ b/ext/-test-/typeddata/typeddata.c @@ -37,7 +37,7 @@ void Init_typeddata(void) { VALUE mBug = rb_define_module("Bug"); - VALUE klass = rb_define_class_under(mBug, "TypedData", rb_cData); + VALUE klass = rb_define_class_under(mBug, "TypedData", rb_cObject); rb_define_alloc_func(klass, test_alloc); rb_define_singleton_method(klass, "check", test_check, 1); rb_define_singleton_method(klass, "make", test_make, 1); |