зеркало из https://github.com/github/ruby.git
* eval.c (rb_mod_nesting): should not include Object at the
toplevel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
285cb99ba4
Коммит
9123ec551d
|
@ -1,3 +1,8 @@
|
|||
Thu Mar 22 18:17:36 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_mod_nesting): should not include Object at the
|
||||
toplevel.
|
||||
|
||||
Thu Mar 22 17:43:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ruby.h: better inline function support.
|
||||
|
|
2
eval.c
2
eval.c
|
@ -1467,7 +1467,7 @@ rb_mod_nesting()
|
|||
NODE *cbase = RNODE(ruby_frame->cbase);
|
||||
VALUE ary = rb_ary_new();
|
||||
|
||||
while (cbase) {
|
||||
while (cbase && cbase->nd_next) {
|
||||
rb_ary_push(ary, cbase->nd_clss);
|
||||
cbase = cbase->nd_next;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче