aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
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