Skip to content

Commit 52f2403

Browse files
committed
Fix compilation errors
1 parent 92b4486 commit 52f2403

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/debase_internals.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ call_at_line(debug_context_t *context, char *file, int line, VALUE context_objec
316316
int count_stack_size() {
317317
rb_thread_t *thread = ruby_current_thread;
318318
rb_control_frame_t *last_cfp = TH_CFP(thread);
319-
const rb_control_frame_t *start_cfp = RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
319+
const rb_control_frame_t *start_cfp = (rb_control_frame_t *)RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
320320
const rb_control_frame_t *cfp;
321321

322322
ptrdiff_t size, i;
@@ -715,12 +715,14 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
715715
}
716716
}
717717
#else
718-
static void
718+
static VALUE
719719
Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
720+
return Qnil;
720721
}
721722

722-
static void
723+
static VALUE
723724
Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
725+
return Qnil;
724726
}
725727
#endif
726728

0 commit comments

Comments
 (0)