ext/fiddle/memory_view.c in fiddle-1.1.2 vs ext/fiddle/memory_view.c in fiddle-1.1.3

- old
+ new

@@ -62,11 +62,16 @@ const struct memview_data *data = ptr; return sizeof(*data) + sizeof(rb_memory_view_item_component_t)*data->n_members + (size_t)data->view.byte_size; } static const rb_data_type_t fiddle_memview_data_type = { - "fiddle/memory_view", - {fiddle_memview_mark, fiddle_memview_free, fiddle_memview_memsize,}, + .wrap_struct_name = "fiddle/memory_view", + .function = { + .dmark = fiddle_memview_mark, + .dfree = fiddle_memview_free, + .dsize = fiddle_memview_memsize, + }, + .flags = FIDDLE_DEFAULT_TYPED_DATA_FLAGS, }; static VALUE rb_fiddle_memview_s_allocate(VALUE klass) {