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:
parent
3dcd927050
commit
8a3423d38b
1 changed files with 1 additions and 1 deletions
2
gc.c
2
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) : " ")
|
||||
|
|
Loading…
Reference in a new issue