summaryrefslogtreecommitdiff
path: root/ext/dl
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:25:38 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:25:38 +0000
commit51e7fc687e6d66d02b37550ca1dd005247bc715f (patch)
tree2d2db4bb84a8e4282ba021261959f503e8bf0926 /ext/dl
parent590a37880c46ce080dde5864497758e0a83a24f4 (diff)
* ext/dl/dl.c (rb_dl_callback): use rb_block_proc() instead of
rb_block_new(). * ext/win32ole/win32ole.c (ev_on_event): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 7a639ac77a..22abb754d2 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -585,7 +585,7 @@ rb_dl_callback(int argc, VALUE argv[], VALUE self)
switch (rb_scan_args(argc, argv, "11", &type, &proc)) {
case 1:
if (rb_block_given_p()) {
- proc = rb_block_new();
+ proc = rb_block_proc();
}
else{
proc = Qnil;