From 82b02c131ee1a87ac1b95443c85c6c8f7b30644f Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 26 Jul 2019 11:37:02 +0900 Subject: pass to obj_info(). obj_info() has a routine to show SPECIAL_CONST_P() objects so we don't need to check it here. --- gc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index a978887ae9..1b0f13efbb 100644 --- a/gc.c +++ b/gc.c @@ -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 -- cgit v1.2.3