mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_mod_modfunc): should break if m has no super class.
[ruby-dev:22498] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16291a0db7
commit
d5ffbb20e8
2 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,11 @@ Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com>
|
||||||
line in files that would otherwise be treated as
|
line in files that would otherwise be treated as
|
||||||
plain text.
|
plain text.
|
||||||
|
|
||||||
|
Tue Jan 6 22:13:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (rb_mod_modfunc): should break if m has no super class.
|
||||||
|
[ruby-dev:22498]
|
||||||
|
|
||||||
Tue Jan 6 21:51:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jan 6 21:51:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (fptr_finalize): should save errno just after failure.
|
* io.c (fptr_finalize): should save errno just after failure.
|
||||||
|
|
1
eval.c
1
eval.c
|
@ -7055,6 +7055,7 @@ rb_mod_modfunc(argc, argv, module)
|
||||||
break; /* normal case: need not to follow 'super' link */
|
break; /* normal case: need not to follow 'super' link */
|
||||||
}
|
}
|
||||||
m = RCLASS(m)->super;
|
m = RCLASS(m)->super;
|
||||||
|
if (!m) break;
|
||||||
}
|
}
|
||||||
rb_add_method(rb_singleton_class(module), id, body->nd_body, NOEX_PUBLIC);
|
rb_add_method(rb_singleton_class(module), id, body->nd_body, NOEX_PUBLIC);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue