diff options
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/variable.c b/variable.c index d676995450..099476c731 100644 --- a/variable.c +++ b/variable.c @@ -249,10 +249,7 @@ VALUE f_autoload(obj, klass, file) VALUE obj, klass, file; { - ID id = rb_to_id(klass); - - Check_Type(file, T_STRING); - rb_autoload_id(id, RSTRING(file)->ptr); + rb_autoload_id(rb_to_id(klass), STR2CSTR(file)); return Qnil; } |