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-/st/numhash | |
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-/st/numhash')
-rw-r--r-- | ext/-test-/st/numhash/numhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/st/numhash/numhash.c b/ext/-test-/st/numhash/numhash.c index 71eeed4910..aa8015e86c 100644 --- a/ext/-test-/st/numhash/numhash.c +++ b/ext/-test-/st/numhash/numhash.c @@ -125,7 +125,7 @@ numhash_delete_safe(VALUE self, VALUE key) void Init_numhash(void) { - VALUE st = rb_define_class_under(rb_define_module("Bug"), "StNumHash", rb_cData); + VALUE st = rb_define_class_under(rb_define_module("Bug"), "StNumHash", rb_cObject); rb_define_alloc_func(st, numhash_alloc); rb_define_method(st, "initialize", numhash_init, 0); rb_define_method(st, "[]", numhash_aref, 1); |