Skip to content

Commit

Permalink
* eval.c (rb_mod_nesting): should not include Object at the
Browse files Browse the repository at this point in the history
  toplevel.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Mar 22, 2001
1 parent 285cb99 commit 9123ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion eval.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9123ec5

Please sign in to comment.