proc.c: magic number

* proc.c (rb_method_call): name a magic number.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-03 10:22:15 +00:00
parent d4736bcf4d
commit fcbd6db87d

5
proc.c
View File

@ -1502,9 +1502,10 @@ rb_method_call(int argc, VALUE *argv, VALUE method)
}
PUSH_TAG();
if (OBJ_TAINTED(method)) {
const int safe_level_to_run = 4 /*SAFE_LEVEL_MAX*/;
safe = rb_safe_level();
if (rb_safe_level() < 4) {
rb_set_safe_level_force(4);
if (rb_safe_level() < safe_level_to_run) {
rb_set_safe_level_force(safe_level_to_run);
}
}
if ((state = EXEC_TAG()) == 0) {