diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-05 08:56:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-05 08:56:42 +0000 |
commit | 1a3f4dbafad89a13c5007c23e3fcd15847cb2304 (patch) | |
tree | a433b5a7d744da95e96bd32441ead7e69de739df /class.c | |
parent | 504e6b4dacf4071ffc8ead7460098fe560de4f04 (diff) | |
download | ruby-1a3f4dbafad89a13c5007c23e3fcd15847cb2304.tar.gz |
* 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
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |