File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ static inline bool ddtrace_di_imemo_iseq_p(VALUE v) {
31
31
static int
32
32
ddtrace_di_os_obj_of_i (void * vstart , void * vend , size_t stride , void * data )
33
33
{
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 ;
35
35
VALUE array = oes -> array ;
36
36
37
37
VALUE v = (VALUE )vstart ;
38
38
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 );
41
41
rb_ary_push (array , iseq );
42
42
}
43
43
}
@@ -50,7 +50,7 @@ static VALUE loaded_file_iseqs(VALUE self) {
50
50
51
51
oes .array = rb_ary_new ();
52
52
rb_objspace_each_objects (ddtrace_di_os_obj_of_i , & oes );
53
- RB_GC_GUARD (oes );
53
+ RB_GC_GUARD (oes . array );
54
54
return oes .array ;
55
55
}
56
56
You can’t perform that action at this time.
0 commit comments