* 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
This commit is contained in:
parent
1f9af2a953
commit
c9044a2472
@ -1,3 +1,8 @@
|
||||
Sat Jun 6 15:59:38 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* class.c: ins_methods_push() needs rb_method_visibility_t type on
|
||||
2nd arg.
|
||||
|
||||
Sat Jun 6 15:05:47 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* class.c (ins_methods_push): Change type and name of parameters
|
||||
|
6
class.c
6
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user