Skip to content

Commit a8cd479

Browse files
committed
move
1 parent 54ce455 commit a8cd479

File tree

1 file changed

+4
-4
lines changed
  • ext/libdatadog_api

1 file changed

+4
-4
lines changed

ext/libdatadog_api/di.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ static inline bool ddtrace_di_imemo_iseq_p(VALUE v) {
3131
static int
3232
ddtrace_di_os_obj_of_i(void *vstart, void *vend, size_t stride, void *data)
3333
{
34-
struct os_each_struct *oes = (struct os_each_struct *)data;
34+
struct ddtrace_di_os_each_struct *oes = (struct ddtrace_di_os_each_struct *)data;
3535
VALUE array = oes->array;
3636

3737
VALUE v = (VALUE)vstart;
3838
for (; v != (VALUE)vend; v += stride) {
39-
if (ddtrace_di_memo_iseq_p(v)) {
40-
VALUE iseq = rb_iseqw_new(v);
39+
if (ddtrace_di_imemo_iseq_p(v)) {
40+
VALUE iseq = rb_iseqw_new((void *) v);
4141
rb_ary_push(array, iseq);
4242
}
4343
}
@@ -50,7 +50,7 @@ static VALUE loaded_file_iseqs(VALUE self) {
5050

5151
oes.array = rb_ary_new();
5252
rb_objspace_each_objects(ddtrace_di_os_obj_of_i, &oes);
53-
RB_GC_GUARD(oes);
53+
RB_GC_GUARD(oes.array);
5454
return oes.array;
5555
}
5656

0 commit comments

Comments
 (0)