mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
b51416e21f
commit
697af8e54c
2 changed files with 5 additions and 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)
|
||||
|
||||
|
|
4
eval.c
4
eval.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue