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:
parent
504e6b4dac
commit
1a3f4dbafa
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
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]
|
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]
|
||||||
|
|
2
class.c
2
class.c
|
@ -314,7 +314,7 @@ make_metaclass(VALUE klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
super = RCLASS_SUPER(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;
|
RCLASS_SUPER(metaclass) = super ? ENSURE_EIGENCLASS(super) : rb_cClass;
|
||||||
|
|
||||||
OBJ_INFECT(metaclass, RCLASS_SUPER(metaclass));
|
OBJ_INFECT(metaclass, RCLASS_SUPER(metaclass));
|
||||||
|
|
Loading…
Add table
Reference in a new issue