diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-01 08:13:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-01 08:13:30 +0000 |
commit | c3f059226764f98cd30b8a7441b006de16edaa3a (patch) | |
tree | ab77e016972d0b523754cf5869cc928dea857ab1 /eval.c | |
parent | 804054e672d8921ecf63095128cc31b8f5709d89 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |