From a2cf0607b06f9a0cf522a971fa6226bb627ecf20 Mon Sep 17 00:00:00 2001 From: "S.H" Date: Tue, 1 Jun 2021 16:34:56 +0900 Subject: [PATCH] Refactor rb_class_path_cached function (#4485) --- variable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/variable.c b/variable.c index 6d03843f61..e5642beca2 100644 --- a/variable.c +++ b/variable.c @@ -177,8 +177,7 @@ rb_class_path(VALUE klass) VALUE rb_class_path_cached(VALUE klass) { - int permanent; - return classname(klass, &permanent); + return rb_mod_name(klass); } static VALUE