summaryrefslogtreecommitdiff
path: root/proc.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 /proc.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 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 6d153c1..789995a 100644
--- a/proc.c
+++ b/proc.c
@@ -1272,7 +1272,7 @@ mnew_internal(const rb_method_entry_t *me, VALUE klass,
return mnew_missing(klass, obj, id, rid, mclass);
}
if (!error) return Qnil;
- rb_print_undef(klass, id, 0);
+ rb_print_undef(klass, id, METHOD_VISI_UNDEF);
}
if (visi == METHOD_VISI_UNDEF) {
visi = METHOD_ENTRY_VISI(me);