summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-07-26 11:37:02 +0900
committerKoichi Sasada <ko1@atdot.net>2019-07-26 11:45:25 +0900
commit82b02c131ee1a87ac1b95443c85c6c8f7b30644f (patch)
tree2613f3e3b019189d4921897bac2d10d558d491d9 /gc.c
parent300de6aec29b1d220b961a287820a32a89940882 (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.c7
1 files changed, 1 insertions, 6 deletions
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