summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-29 00:13:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-29 00:13:58 +0000
commit5a3e59d284a20bf7bda78b828dfce522267acee8 (patch)
tree85424217980ee1b6a1d07ecf5c70b2b997e8e38e /object.c
parentaffcfc9e7a13674736103508a26f0c7624199b8f (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index e2b3e43bd0..a6ded56724 100644
--- a/object.c
+++ b/object.c
@@ -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;