From 671b498070c0fa33fa6afaf4f4672441ae61661a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 19 Oct 2010 03:25:29 +0000 Subject: Commit miss. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29534 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 873219a433..0d1898313b 100644 --- a/hash.c +++ b/hash.c @@ -248,7 +248,7 @@ rb_hash_dup(VALUE hash) static void rb_hash_modify_check(VALUE hash) { - rb_check_frozen(hash); + if (OBJ_FROZEN(hash)) rb_error_frozen("hash"); if (!OBJ_UNTRUSTED(hash) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't modify hash"); } -- cgit v1.2.3