1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_call0): wrong condition for $SAFE restoration.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-09-01 08:13:30 +00:00
parent c704c569d5
commit 36aa5671aa
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call0): wrong condition for $SAFE restoration.
Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't

2
eval.c
View file

@ -5806,7 +5806,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, flags)
POP_CLASS();
POP_SCOPE();
ruby_cref = saved_cref;
if (safe > 0) ruby_safe_level = safe;
if (safe >= 0) ruby_safe_level = safe;
if (event_hooks) {
EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass);
}