diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2023-03-02 13:15:58 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-03-02 13:45:26 +0100 |
commit | 830ea9b6aaf785b70184ff4f4fceb66388211f5e (patch) | |
tree | 6d22595c2716205d3bacfc200c92233372120017 /ext/ffi_c/Function.c | |
parent | 227d1ce472ec90144249f8cf85b52d85cbab925c (diff) | |
download | ffi-830ea9b6aaf785b70184ff4f4fceb66388211f5e.tar.gz |
Convert FFI::Type and descendants to TypedData
Ref: https://github.com/ffi/ffi/pull/991
The old untyped DATA API is soft deprecated and
this new one open the door to write barriers, compaction, memsize etc.
Diffstat (limited to 'ext/ffi_c/Function.c')
-rw-r--r-- | ext/ffi_c/Function.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/Function.c b/ext/ffi_c/Function.c index 1a57591..45d97d7 100644 --- a/ext/ffi_c/Function.c +++ b/ext/ffi_c/Function.c @@ -302,7 +302,7 @@ function_init(VALUE self, VALUE rbFunctionInfo, VALUE rbProc) fn->rbFunctionInfo = rbFunctionInfo; - Data_Get_Struct(fn->rbFunctionInfo, FunctionType, fn->info); + TypedData_Get_Struct(fn->rbFunctionInfo, FunctionType, &rbffi_fntype_data_type, fn->info); if (rb_obj_is_kind_of(rbProc, rbffi_PointerClass)) { Pointer* orig; |