diff options
Diffstat (limited to 'eval_load.c')
-rw-r--r-- | eval_load.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eval_load.c b/eval_load.c index d95b438f6..866c45bf8 100644 --- a/eval_load.c +++ b/eval_load.c @@ -409,10 +409,10 @@ load_failed(VALUE fname) } static VALUE -load_ext(VALUE arg) +load_ext(VALUE path) { SCOPE_SET(NOEX_PUBLIC); - return (VALUE)dln_load((const char *)arg); + return (VALUE)dln_load(RSTRING_PTR(path)); } VALUE @@ -456,7 +456,7 @@ rb_require_safe(VALUE fname, int safe) ruby_sourcefile = rb_source_filename(RSTRING_PTR(path)); ruby_sourceline = 0; handle = (long)rb_vm_call_cfunc(ruby_top_self, load_ext, - ruby_source_filename, 0, path); + path, 0, path); rb_ary_push(ruby_dln_librefs, LONG2NUM(handle)); break; } |