diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-19 09:32:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-19 09:32:45 +0000 |
commit | f426e5870f4008e978ebbf7d6ddee3f6a9d1b506 (patch) | |
tree | 6107768b76bce3f9c877e891535651c937c072be /class.c | |
parent | ecaa1d3508b518cbdda5bd1250e709fa58c3a794 (diff) |
* class.c (rb_include_module): argument should be T_MODULE, not
T_class, nor T_ICLASS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -323,12 +323,7 @@ rb_include_module(klass, module) if (NIL_P(module)) return; if (klass == module) return; - switch (TYPE(module)) { - case T_MODULE: - case T_CLASS: - case T_ICLASS: - break; - default: + if (TYPE(module) != T_MODULE) { Check_Type(module, T_MODULE); } |