summaryrefslogtreecommitdiffstats
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
commit30d23ed4486a68ae2c18d34b3f8e522998f748a9 (patch)
tree2d2db4bb84a8e4282ba021261959f503e8bf0926 /ext/dl
parentb9de30c8ebe7d7227364f8430e86156c0b13db22 (diff)
downloadruby-30d23ed4486a68ae2c18d34b3f8e522998f748a9.tar.gz
ruby-30d23ed4486a68ae2c18d34b3f8e522998f748a9.tar.xz
ruby-30d23ed4486a68ae2c18d34b3f8e522998f748a9.zip
* 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: http://svn.ruby-lang.org/repos/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 7a639ac77..22abb754d 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;