diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-14 23:54:06 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-14 23:54:06 +0000 |
commit | f8c4023772983c322280762e720a50d9604188ac (patch) | |
tree | 9f279add5f9f86d3340ec0be83469291a2601bbc /array.c | |
parent | 1abc48beac217c488391adeb3bf3f60781e48e3d (diff) | |
download | ruby-f8c4023772983c322280762e720a50d9604188ac.tar.gz ruby-f8c4023772983c322280762e720a50d9604188ac.tar.xz ruby-f8c4023772983c322280762e720a50d9604188ac.zip |
* eval.c (rb_method_node): new API to retrieve method body.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,8 +81,8 @@ static VALUE rb_ary_frozen_p(ary) VALUE ary; { - if (FL_TEST(ary, FL_FREEZE|ARY_TMPLOCK)) - return Qtrue; + if (OBJ_FROZEN(ary)) return Qtrue; + if (FL_TEST(ary, ARY_TMPLOCK)) return Qtrue; return Qfalse; } |