Skip to content

Commit

Permalink
* class.c (rb_include_module): argument should be T_MODULE, not
Browse files Browse the repository at this point in the history
  T_class, nor T_ICLASS.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_6@3170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Dec 19, 2002
1 parent 156f676 commit 88b3ca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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.
Expand Down
7 changes: 1 addition & 6 deletions class.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 88b3ca5

Please sign in to comment.