aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 71a3f032ad..fbdb354af6 100644
--- a/gc.c
+++ b/gc.c
@@ -2279,7 +2279,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
}
#endif
if (/* RHASH_AR_TABLE_P(obj) */ !FL_TEST_RAW(obj, RHASH_ST_TABLE_FLAG)) {
- ar_table *tab = RHASH(obj)->as.ar;
+ struct ar_table_struct *tab = RHASH(obj)->as.ar;
if (tab) {
if (RHASH_TRANSIENT_P(obj)) {
@@ -3356,7 +3356,8 @@ obj_memsize_of(VALUE obj, int use_all_types)
break;
case T_HASH:
if (RHASH_AR_TABLE_P(obj)) {
- size += sizeof(ar_table);
+ size_t rb_hash_ar_table_size();
+ size += rb_hash_ar_table_size();
}
else {
VM_ASSERT(RHASH_ST_TABLE(obj) != NULL);