summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 14:40:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 14:40:35 +0000
commit64ed7df5434bc2978d5a92a1e750bab39b11edfa (patch)
tree671fd64793db8e3865e5107db246967c50b6cb99
parent7708560bb1c4686668268a2bca05da481b7c3132 (diff)
vm_method.c: change argument of set_visibility
* vm_method.c (set_visibility): use rb_method_flag_t as well as set_method_visibility() and rename argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm_method.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index 129507ceddd..35e1d6f45b6 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1291,14 +1291,14 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
}
static VALUE
-set_visibility(int argc, VALUE *argv, VALUE module, int visi)
+set_visibility(int argc, VALUE *argv, VALUE module, rb_method_flag_t ex)
{
secure_visibility(module);
if (argc == 0) {
- SCOPE_SET(visi);
+ SCOPE_SET(ex);
}
else {
- set_method_visibility(module, argc, argv, visi);
+ set_method_visibility(module, argc, argv, ex);
}
return module;
}