From 7b209fe7efe78e4f568da04c4b89056fa90973a6 Mon Sep 17 00:00:00 2001 From: Bijan Rahnema Date: Mon, 20 Feb 2023 16:24:56 +0100 Subject: [PATCH] replace deprecated rb_cData with rb_cObject --- ext/readapt/frame.c | 2 +- ext/readapt/threads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/readapt/frame.c b/ext/readapt/frame.c index af2133f..913fbb3 100644 --- a/ext/readapt/frame.c +++ b/ext/readapt/frame.c @@ -128,7 +128,7 @@ VALUE frame_binding_m(VALUE self) void initialize_frame(VALUE m_Readapt) { - c_Frame = rb_define_class_under(m_Readapt, "Frame", rb_cData); + c_Frame = rb_define_class_under(m_Readapt, "Frame", rb_cObject); rb_define_alloc_func(c_Frame, frame_allocate_s); rb_define_method(c_Frame, "initialize", frame_initialize_m, 3); rb_define_method(c_Frame, "file", frame_file_m, 0); diff --git a/ext/readapt/threads.c b/ext/readapt/threads.c index 1f5de11..355c73e 100755 --- a/ext/readapt/threads.c +++ b/ext/readapt/threads.c @@ -190,7 +190,7 @@ void initialize_threads(VALUE m_Readapt) { next_id = 1; - c_Thread = rb_define_class_under(m_Readapt, "Thread", rb_cData); + c_Thread = rb_define_class_under(m_Readapt, "Thread", rb_cObject); rb_define_alloc_func(c_Thread, thread_allocate_s); rb_define_method(c_Thread, "id", thread_id_m, 0); rb_define_method(c_Thread, "frames", frames_m, 0);