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

pass to obj_info().

obj_info() has a routine to show SPECIAL_CONST_P() objects so
we don't need to check it here.
This commit is contained in:
Koichi Sasada 2019-07-26 11:37:02 +09:00
parent 300de6aec2
commit 82b02c131e

7
gc.c
View file

@ -11421,12 +11421,7 @@ obj_info(VALUE obj)
MJIT_FUNC_EXPORTED const char *
rb_obj_info(VALUE obj)
{
if (!rb_special_const_p(obj)) {
return obj_info(obj);
}
else {
return obj_type_name(obj);
}
return obj_info(obj);
}
void