aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 23:33:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 23:33:08 +0000
commit77557e23326cf497b57497ab1a0db4266af89636 (patch)
treec1d5a0414f8583e56e0562d2f33f567667d0645f /gc.c
parent43b7f3002c5c1e1048fa0935ff6785189fa69808 (diff)
downloadruby-77557e23326cf497b57497ab1a0db4266af89636.tar.gz
gc.c: use BUILTIN_TYPE
* gc.c (rb_raw_obj_info): BUILTIN_TYPE works fro non-special_const objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 c5c64fef42..977c0b6e7d 100644
--- a/gc.c
+++ b/gc.c
@@ -8966,7 +8966,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
}
else {
const int age = RVALUE_FLAGS_AGE(RBASIC(obj)->flags);
- const int type = TYPE(obj);
+ const int type = BUILTIN_TYPE(obj);
#define TF(c) ((c) != 0 ? "true" : "false")
#define C(c, s) ((c) != 0 ? (s) : " ")