From c5d6a1ba48306652bb96bf0bf081c8c66cb45ef5 Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 14 May 2002 05:59:35 +0000 Subject: * gc.c (is_pointer_to_heap): avoid GCC 3.1 warnings. * missing/strftime.c (timezone): it should take no argument on Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index b4d63650d8..c297175686 100644 --- a/gc.c +++ b/gc.c @@ -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) { -- cgit v1.2.3