Skip to content

Commit fd6fcd1

Browse files
committed
Fixed compilation issue on ruby 2.5
1 parent e8c85a8 commit fd6fcd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/debase_internals.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,21 +693,21 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
693693
return iseq;
694694
}
695695

696-
static void
696+
static VALUE
697697
Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
698698
if (!SPECIAL_CONST_P(rb_iseq) && RBASIC_CLASS(rb_iseq) == rb_cISeq) {
699-
rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
699+
const rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
700700

701701
if(iseq) {
702702
rb_iseq_trace_set(iseq, RUBY_EVENT_TRACEPOINT_ALL);
703703
}
704704
}
705705
}
706706

707-
static void
707+
static VALUE
708708
Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
709709
if (!SPECIAL_CONST_P(rb_iseq) && RBASIC_CLASS(rb_iseq) == rb_cISeq) {
710-
rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
710+
const rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
711711

712712
if(iseq) {
713713
rb_iseq_trace_set(iseq, RUBY_EVENT_NONE);

0 commit comments

Comments
 (0)