diff options
author | Koichi Sasada <[email protected]> | 2019-07-26 11:37:02 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-07-26 11:45:25 +0900 |
commit | 82b02c131ee1a87ac1b95443c85c6c8f7b30644f (patch) | |
tree | 2613f3e3b019189d4921897bac2d10d558d491d9 /gc.c | |
parent | 300de6aec29b1d220b961a287820a32a89940882 (diff) |
pass to obj_info().
obj_info() has a routine to show SPECIAL_CONST_P() objects so
we don't need to check it here.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |