diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
commit | 671b498070c0fa33fa6afaf4f4672441ae61661a (patch) | |
tree | 07e887952acaa6df812940779b9a1ad907fc727f /struct.c | |
parent | 12cbb588193ac5148b6421fc8953c817acb0ae9f (diff) |
Commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ static VALUE (*const ref_func[])(VALUE) = { static void rb_struct_modify(VALUE s) { - rb_check_frozen(s); + if (OBJ_FROZEN(s)) rb_error_frozen("Struct"); if (!OBJ_UNTRUSTED(s) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't modify Struct"); } |