aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-03 04:59:54 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-03 04:59:54 +0000
commitec53d831339e1fe7447ab2c56ada97e8ec70b437 (patch)
treef4aa668a464cf6df6e64a7ea4701ddc42fcd5688 /eval_error.c
parent23dc80753fbd9c5e3fc0e7102c279960ff1f6828 (diff)
downloadruby-ec53d831339e1fe7447ab2c56ada97e8ec70b437.tar.gz
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 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 24bab9eab9..aa111714f7 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -215,7 +215,7 @@ ruby_error_print(void)
undef_mesg_for(v, "class"))
void
-rb_print_undef(VALUE klass, ID id, int visi)
+rb_print_undef(VALUE klass, ID id, rb_method_visibility_t visi)
{
const int is_mod = RB_TYPE_P(klass, T_MODULE);
VALUE mesg;