diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-06 21:54:46 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-06 21:54:46 +0000 |
commit | 697af8e54cccfcba46ab9bbe56cd6e645f30a0b1 (patch) | |
tree | 63bca38d0ae817d3af1997403394879afa314afc | |
parent | b51416e21f7c0df7d29a7ccd7660f794b6055620 (diff) | |
download | ruby-697af8e54cccfcba46ab9bbe56cd6e645f30a0b1.tar.gz |
* eval.c (rb_call0): forgot to pop ruby_class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | eval.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,7 @@ Thu Aug 7 06:46:06 2003 Yukihiro Matsumoto <matz@ruby-lang.org> + * eval.c (rb_call0): forgot to pop ruby_class. + * eval.c (rb_call0): update ruby_class as well as ruby_cref. (ruby-bugs-ja PR#540) @@ -4945,8 +4945,9 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper) if (body->nd_rval) { saved_cref = ruby_cref; ruby_cref = (NODE*)body->nd_rval; - ruby_class = ruby_cbase; } + PUSH_CLASS(); + ruby_class = ruby_cbase; if (body->nd_tbl) { local_vars = TMP_ALLOC(body->nd_tbl[0]+1); *local_vars++ = (VALUE)body; @@ -5043,6 +5044,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper) } POP_TAG(); POP_VARS(); + POP_CLASS(); POP_SCOPE(); ruby_cref = saved_cref; if (trace_func) { |