From 82cd48d7ee799ff1cd37c0ea0be2ab0d0aea9a2e Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 2 Jun 2012 21:34:14 +0000 Subject: gc.c: simplified git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gc.c b/gc.c index 8f1ed4b142..21ecd07973 100644 --- a/gc.c +++ b/gc.c @@ -3768,7 +3768,7 @@ wmap_aref(VALUE self, VALUE wmap) static VALUE gc_count(VALUE self) { - return UINT2NUM((&rb_objspace)->count); + return UINT2NUM(rb_objspace.count); } /* @@ -3839,7 +3839,7 @@ gc_stat(int argc, VALUE *argv, VALUE self) static VALUE gc_malloc_allocated_size(VALUE self) { - return UINT2NUM((&rb_objspace)->malloc_params.allocated_size); + return UINT2NUM(rb_objspace.malloc_params.allocated_size); } /* @@ -3854,7 +3854,7 @@ gc_malloc_allocated_size(VALUE self) static VALUE gc_malloc_allocations(VALUE self) { - return UINT2NUM((&rb_objspace)->malloc_params.allocations); + return UINT2NUM(rb_objspace.malloc_params.allocations); } #endif -- cgit v1.2.3