diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-23 12:18:51 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-23 12:18:51 +0000 |
commit | 8a684f67feb988ac2ca39a58e286ac7d85ebcac3 (patch) | |
tree | 631fc27bba499e9103e55ae3e75ca2458ae91051 /gc.c | |
parent | ef8f24d06ebb9a4c4964d265d9be459249efc9ac (diff) |
merges r27944 from trunk into ruby_1_9_2.
--
* suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1808,7 +1808,7 @@ finalize_list(rb_objspace_t *objspace, RVALUE *p) add_freelist(objspace, p); } else { - struct heaps_slot *slot = (struct heaps_slot *)RDATA(p)->dmark; + struct heaps_slot *slot = (struct heaps_slot *)(VALUE)RDATA(p)->dmark; slot->limit--; } p = tmp; @@ -1908,7 +1908,7 @@ gc_sweep(rb_objspace_t *objspace) RVALUE *pp; for (pp = final_list; pp != final; pp = pp->as.free.next) { - RDATA(pp)->dmark = (void *)&heaps[i]; + RDATA(pp)->dmark = (void (*)())(VALUE)&heaps[i]; pp->as.free.flags |= FL_SINGLETON; /* freeing page mark */ } heaps[i].limit = final_num; |