1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2007-09-29 00:13:58 +00:00
parent affcfc9e7a
commit 5a3e59d284
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sat Sep 29 09:12:02 2007 Tanaka Akira <akr@fsij.org>
* 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.
Sat Sep 29 08:57:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h (strcasecmp): needed for type_strcasehash.

View file

@ -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;