mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* load.c (rb_mod_autoload): try conversion to path like as
require. [ruby-core:23834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d70719b061
commit
087ecdf5ed
2 changed files with 6 additions and 1 deletions
2
load.c
2
load.c
|
@ -654,7 +654,7 @@ rb_mod_autoload(VALUE mod, VALUE sym, VALUE file)
|
|||
{
|
||||
ID id = rb_to_id(sym);
|
||||
|
||||
Check_SafeStr(file);
|
||||
FilePathValue(file);
|
||||
rb_autoload(mod, id, RSTRING_PTR(file));
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue