diff options
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -521,7 +521,7 @@ mark_locations_array(x, n) register long n; { while (n--) { - if (is_pointer_to_heap(*x)) { + if (is_pointer_to_heap((void *)*x)) { rb_gc_mark(*x); } x++; @@ -583,7 +583,7 @@ void rb_gc_mark_maybe(obj) VALUE obj; { - if (is_pointer_to_heap(obj)) { + if (is_pointer_to_heap((void *)obj)) { rb_gc_mark(obj); } } @@ -1508,7 +1508,7 @@ id2ref(obj, id) } ptr = id ^ FIXNUM_FLAG; /* unset FIXNUM_FLAG */ - if (!is_pointer_to_heap(ptr)) { + if (!is_pointer_to_heap((void *)ptr)) { rb_raise(rb_eRangeError, "0x%x is not id value", p0); } if (BUILTIN_TYPE(ptr) == 0) { |