Skip to content

Commit

Permalink
Merge pull request #15 from gobijan/master
Browse files Browse the repository at this point in the history
replace deprecated rb_cData with rb_cObject
  • Loading branch information
castwide authored Dec 7, 2023
2 parents 45acd44 + 7b209fe commit 0eae393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/readapt/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/readapt/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0eae393

Please sign in to comment.