mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use BUITIN_TYPE() rather than TYPE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cdd83f686
commit
a3b6e114b4
1 changed files with 1 additions and 1 deletions
2
gc.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue