summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 21:34:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 21:34:14 +0000
commit82cd48d7ee799ff1cd37c0ea0be2ab0d0aea9a2e (patch)
tree9878a12bf60f265691559eae8c5bc487a5f1f6f1 /gc.c
parentb4be4c7be315998f8301c21636aa7b4ab8c9e47f (diff)
gc.c: simplified
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files 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