From c9044a247286ac7b02964c80361c8acede98043f Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 6 Jun 2015 07:01:21 +0000 Subject: * class.c: ins_methods_push() needs rb_method_visibility_t type on 2nd arg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 985b6a019c..938c098918 100644 --- a/class.c +++ b/class.c @@ -1091,19 +1091,19 @@ ins_methods_i(st_data_t name, st_data_t type, st_data_t ary) static int ins_methods_prot_i(st_data_t name, st_data_t type, st_data_t ary) { - return ins_methods_push((ID)name, (long)type, (VALUE)ary, METHOD_VISI_PROTECTED); + return ins_methods_push((ID)name, (rb_method_visibility_t)type, (VALUE)ary, METHOD_VISI_PROTECTED); } static int ins_methods_priv_i(st_data_t name, st_data_t type, st_data_t ary) { - return ins_methods_push((ID)name, (long)type, (VALUE)ary, METHOD_VISI_PRIVATE); + return ins_methods_push((ID)name, (rb_method_visibility_t)type, (VALUE)ary, METHOD_VISI_PRIVATE); } static int ins_methods_pub_i(st_data_t name, st_data_t type, st_data_t ary) { - return ins_methods_push((ID)name, (long)type, (VALUE)ary, METHOD_VISI_PUBLIC); + return ins_methods_push((ID)name, (rb_method_visibility_t)type, (VALUE)ary, METHOD_VISI_PUBLIC); } struct method_entry_arg { -- cgit v1.2.3