diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | class.c | 7 |
2 files changed, 6 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Wed Dec 18 17:53:05 2002 Yukihiro Matsumoto <matz@ruby-lang.org> + + * class.c (rb_include_module): argument should be T_MODULE, not + T_class, nor T_ICLASS. + Mon Dec 16 16:35:28 2002 Yukihiro Matsumoto <matz@ruby-lang.org> * stable version 1.6.8 release candidate. @@ -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); } |