summaryrefslogtreecommitdiffstats
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
commit9daf2da386739d94f9f55788b7584ec236b82b81 (patch)
tree113e4a154eb0c64affb5a879e1756e94d36feb83 /eval_load.c
parent18f2c7b152a1fb987cbed940d7ca4a067748890e (diff)
downloadruby-9daf2da386739d94f9f55788b7584ec236b82b81.tar.gz
ruby-9daf2da386739d94f9f55788b7584ec236b82b81.tar.xz
ruby-9daf2da386739d94f9f55788b7584ec236b82b81.zip
* eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
pointer. [ruby-Bugs-11659] git-svn-id: http://svn.ruby-lang.org/repos/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 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;
}