summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index ae7a8ca5dd5..64907e96867 100644
--- a/gc.c
+++ b/gc.c
@@ -924,7 +924,7 @@ gc_sweep()
else {
RBASIC(p)->flags &= ~FL_MARK;
live += sizeof(VALUE);
- switch (TYPE(p)) {
+ switch (BUILTIN_TYPE(p)) {
case T_OBJECT:
live += size_of_table(ROBJECT(p)->iv_tbl);
break;