ruby-changes:66388
From: S.H <ko1@a...>
Date: Tue, 1 Jun 2021 16:35:09 +0900 (JST)
Subject: [ruby-changes:66388] a2cf0607b0 (master): Refactor rb_class_path_cached function (#4485)
https://git.ruby-lang.org/ruby.git/commit/?id=a2cf0607b0 From a2cf0607b06f9a0cf522a971fa6226bb627ecf20 Mon Sep 17 00:00:00 2001 From: "S.H" <gamelinks007@g...> Date: Tue, 1 Jun 2021 16:34:56 +0900 Subject: 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 6d03843..e5642be 100644 --- a/variable.c +++ b/variable.c @@ -177,8 +177,7 @@ rb_class_path(VALUE klass) https://github.com/ruby/ruby/blob/trunk/variable.c#L177 VALUE rb_class_path_cached(VALUE klass) { - int permanent; - return classname(klass, &permanent); + return rb_mod_name(klass); } static VALUE -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/