diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-29 00:13:58 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-29 00:13:58 +0000 |
| commit | b5b827310a6c322dd5ec4019580a8ff5ba238370 (patch) | |
| tree | 85424217980ee1b6a1d07ecf5c70b2b997e8e38e /object.c | |
| parent | 21b9680f481c83237418f8f93dc746e6f301ae7f (diff) | |
| download | ruby-b5b827310a6c322dd5ec4019580a8ff5ba238370.tar.gz ruby-b5b827310a6c322dd5ec4019580a8ff5ba238370.tar.xz ruby-b5b827310a6c322dd5ec4019580a8ff5ba238370.zip | |
* object.c (rb_class_real): use BUILTIN_TYPE instead of TYPE.
access flags directly intead of FL_TEST.
they are enough because cl argument is a class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ rb_obj_equal(VALUE obj1, VALUE obj2) VALUE rb_class_real(VALUE cl) { - while (FL_TEST(cl, FL_SINGLETON) || TYPE(cl) == T_ICLASS) { + while ((RBASIC(cl)->flags & FL_SINGLETON) || BUILTIN_TYPE(cl) == T_ICLASS) { cl = RCLASS_SUPER(cl); } return cl; |
