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