ext/byebug/byebug.c in byebug-2.2.1 vs ext/byebug/byebug.c in byebug-2.2.2
- old
+ new
@@ -353,11 +353,11 @@
cleanup(dc);
return;
}
ancestors = rb_mod_ancestors(expn_class);
- for (i = 0; i < RARRAY_LEN(ancestors); i++)
+ for (i = 0; i < RARRAY_LENINT(ancestors); i++)
{
VALUE mod_name;
VALUE hit_count;
aclass = rb_ary_entry(ancestors, i);
@@ -411,20 +411,20 @@
rb_ary_push(traces, tpRaise);
tracepoints = traces;
}
- for (i = 0; i < RARRAY_LEN(traces); i++)
+ for (i = 0; i < RARRAY_LENINT(traces); i++)
rb_tracepoint_enable(rb_ary_entry(traces, i));
}
static void
clear_tracepoints(VALUE self)
{
int i;
- for (i = RARRAY_LEN(tracepoints)-1; i >= 0; i--)
+ for (i = RARRAY_LENINT(tracepoints)-1; i >= 0; i--)
rb_tracepoint_disable(rb_ary_entry(tracepoints, i));
}
/* Byebug's Public API */
@@ -448,20 +448,20 @@
check_started();
new_list = rb_ary_new();
list = rb_funcall(rb_cThread, rb_intern("list"), 0);
- for (i = 0; i < RARRAY_LEN(list); i++)
+ for (i = 0; i < RARRAY_LENINT(list); i++)
{
VALUE thread = rb_ary_entry(list, i);
thread_context_lookup(thread, &context);
rb_ary_push(new_list, context);
}
threads_clear(threads);
Data_Get_Struct(threads, threads_table_t, t_tbl);
- for (i = 0; i < RARRAY_LEN(new_list); i++)
+ for (i = 0; i < RARRAY_LENINT(new_list); i++)
{
context = rb_ary_entry(new_list, i);
Data_Get_Struct(context, debug_context_t, dc);
st_insert(t_tbl->tbl, dc->thread, context);
}