1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Refactor rb_class_path_cached function (#4485)

This commit is contained in:
S.H 2021-06-01 16:34:56 +09:00 committed by GitHub
parent 1055b37ef5
commit a2cf0607b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-06-01 16:35:18 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View file

@ -177,8 +177,7 @@ rb_class_path(VALUE klass)
VALUE VALUE
rb_class_path_cached(VALUE klass) rb_class_path_cached(VALUE klass)
{ {
int permanent; return rb_mod_name(klass);
return classname(klass, &permanent);
} }
static VALUE static VALUE