diff options
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r-- | ext/dl/dl.c | 2 |
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; |