diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-14 05:59:35 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-14 05:59:35 +0000 |
commit | c5d6a1ba48306652bb96bf0bf081c8c66cb45ef5 (patch) | |
tree | 154af602c2dce0669efd3ed179b60dc167bae1fa /gc.c | |
parent | 6ed7cf2f1bc6c312fb8bfaf3cb5cf06412785b26 (diff) | |
download | bundler-c5d6a1ba48306652bb96bf0bf081c8c66cb45ef5.tar.gz |
* 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
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) { |