summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-01 08:13:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-01 08:13:30 +0000
commitc3f059226764f98cd30b8a7441b006de16edaa3a (patch)
treeab77e016972d0b523754cf5869cc928dea857ab1 /eval.c
parent804054e672d8921ecf63095128cc31b8f5709d89 (diff)
downloadruby-c3f059226764f98cd30b8a7441b006de16edaa3a.tar.gz
* eval.c (rb_call0): wrong condition for $SAFE restoration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 9008e88eb8..c52d889d62 100644
--- a/eval.c
+++ b/eval.c
@@ -5959,7 +5959,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);
}