diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-22 09:19:57 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-22 09:19:57 +0000 |
commit | 9123ec551d6616b7e08a3be89c2dad666b034e81 (patch) | |
tree | 9f956467b4b2af7a48441f3ff6b8ff314dcb2398 /eval.c | |
parent | 285cb99ba493a113098b78c9989cba5a870f2435 (diff) |
* 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
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |