From 590a37880c46ce080dde5864497758e0a83a24f4 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 16 Jun 2003 07:14:50 +0000 Subject: * 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 --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 26a4fe5ace..03318c31a0 100644 --- a/hash.c +++ b/hash.c @@ -209,7 +209,7 @@ rb_hash_initialize(argc, argv, hash) if (argc > 0) { rb_raise(rb_eArgError, "wrong number of arguments"); } - RHASH(hash)->ifnone = rb_block_new(); + RHASH(hash)->ifnone = rb_block_proc(); FL_SET(hash, HASH_PROC_DEFAULT); } else { -- cgit v1.2.3