Skip to content

Commit 234412a

Browse files
committed
ruby 2.6.x is not C99.
1 parent 79994b2 commit 234412a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

ext/debug/debug.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,21 @@ di_body(const rb_debug_inspector_t *dc, void *ptr)
4949
long i;
5050

5151
for (i=1; i<len; i++) {
52+
VALUE loc, e;
5253
VALUE iseq = rb_debug_inspector_frame_iseq_get(dc, i);
5354

5455
if (!NIL_P(iseq)) {
5556
VALUE path = iseq_realpath(iseq);
5657
if (!NIL_P(path) && str_start_with(path, skip_path_prefix)) continue;
5758
}
5859

59-
VALUE loc = RARRAY_AREF(locs, i);
60-
VALUE e = di_entry(loc,
61-
rb_debug_inspector_frame_self_get(dc, i),
62-
rb_debug_inspector_frame_binding_get(dc, i),
63-
iseq,
64-
rb_debug_inspector_frame_class_get(dc, i),
65-
INT2FIX(len - i));
60+
loc = RARRAY_AREF(locs, i);
61+
e = di_entry(loc,
62+
rb_debug_inspector_frame_self_get(dc, i),
63+
rb_debug_inspector_frame_binding_get(dc, i),
64+
iseq,
65+
rb_debug_inspector_frame_class_get(dc, i),
66+
INT2FIX(len - i));
6667
rb_ary_push(ary, e);
6768
}
6869

0 commit comments

Comments
 (0)