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

* class.c (make_metaclass): fix probable typo. builtin type flag

cannot be used with FL_TEST.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-05 08:56:42 +00:00
parent 504e6b4dac
commit 1a3f4dbafa
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Dec 5 17:56:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* class.c (make_metaclass): fix probable typo. builtin type flag
cannot be used with FL_TEST.
Sun Dec 5 12:09:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]

View file

@ -314,7 +314,7 @@ make_metaclass(VALUE klass)
}
super = RCLASS_SUPER(klass);
while (FL_TEST(super, T_ICLASS)) super = RCLASS_SUPER(super);
while (RB_TYPE_P(super, T_ICLASS)) super = RCLASS_SUPER(super);
RCLASS_SUPER(metaclass) = super ? ENSURE_EIGENCLASS(super) : rb_cClass;
OBJ_INFECT(metaclass, RCLASS_SUPER(metaclass));