зеркало из https://github.com/github/ruby.git
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:
Родитель
3dcd927050
Коммит
8a3423d38b
2
gc.c
2
gc.c
|
@ -8966,7 +8966,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const int age = RVALUE_FLAGS_AGE(RBASIC(obj)->flags);
|
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 TF(c) ((c) != 0 ? "true" : "false")
|
||||||
#define C(c, s) ((c) != 0 ? (s) : " ")
|
#define C(c, s) ((c) != 0 ? (s) : " ")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче