summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
commit590a37880c46ce080dde5864497758e0a83a24f4 (patch)
tree8708e5fd1cd567fc0fa55be976bfa23a580c109f /class.c
parent5fb3efb267a40d0b2410af36cd3421ef94492170 (diff)
downloadruby-590a37880c46ce080dde5864497758e0a83a24f4.tar.gz
* eval.c (proc_alloc): re-unification of Block and Proc. Block
class is no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index 2c802f819c..68d908665e 100644
--- a/class.c
+++ b/class.c
@@ -879,7 +879,7 @@ rb_scan_args(argc, argv, fmt, va_alist)
if (*p == '&') {
var = va_arg(vargs, VALUE*);
if (rb_block_given_p()) {
- *var = rb_block_new();
+ *var = rb_block_proc();
}
else {
*var = Qnil;