1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-11-18 23:33:08 +00:00
parent 3dcd927050
commit 8a3423d38b

2
gc.c
View file

@ -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) : " ")