diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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. @@ -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; } |