summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-03 04:59:54 (GMT)
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-03 04:59:54 (GMT)
commit5cf9b65aa3c1889425fea23ed49d669ecadf6253 (patch)
treef4aa668a464cf6df6e64a7ea4701ddc42fcd5688 /vm_method.c
parent21649a0fcc37a106d7408fd38fbf7c2ce3ba4f09 (diff)
Use `rb_method_visibility_t` instead of `int` in `rb_print_undef`
* eval_error.c (rb_print_undef): Use `rb_method_visibility_t` instead of `int`. * eval_intern.h (rb_print_undef): ditto * proc.c (mnew_internal): ditto * vm_method.c (rb_export_method): ditto [Misc #11649] [ruby-core:71311] [fix GH-1078] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index 24f37dc..f15917e 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1036,7 +1036,7 @@ rb_export_method(VALUE klass, ID name, rb_method_visibility_t visi)
if (UNDEFINED_METHOD_ENTRY_P(me) ||
UNDEFINED_REFINED_METHOD_P(me->def)) {
- rb_print_undef(klass, name, 0);
+ rb_print_undef(klass, name, METHOD_VISI_UNDEF);
}
if (METHOD_ENTRY_VISI(me) != visi) {
@@ -1538,7 +1538,7 @@ rb_alias(VALUE klass, ID alias_name, ID original_name)
if ((!RB_TYPE_P(klass, T_MODULE)) ||
(orig_me = search_method(rb_cObject, original_name, &defined_class),
UNDEFINED_METHOD_ENTRY_P(orig_me))) {
- rb_print_undef(klass, original_name, 0);
+ rb_print_undef(klass, original_name, METHOD_VISI_UNDEF);
}
}
@@ -1842,7 +1842,7 @@ rb_mod_modfunc(int argc, VALUE *argv, VALUE module)
me = search_method(rb_cObject, id, 0);
}
if (UNDEFINED_METHOD_ENTRY_P(me)) {
- rb_print_undef(module, id, 0);
+ rb_print_undef(module, id, METHOD_VISI_UNDEF);
}
if (me->def->type != VM_METHOD_TYPE_ZSUPER) {
break; /* normal case: need not to follow 'super' link */