summaryrefslogtreecommitdiff
path: root/eval_load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-19 01:53:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-19 01:53:31 +0000
commitf91ec98d430491a88b8a8aa10f21d79e936c526a (patch)
tree113e4a154eb0c64affb5a879e1756e94d36feb83 /eval_load.c
parent9fa80b19a61adf70ec785d96ebffc2a9327b7b5c (diff)
* eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
pointer. [ruby-Bugs-11659] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_load.c')
-rw-r--r--eval_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval_load.c b/eval_load.c
index d95b438f63..866c45bf82 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;
}