[前][次][番号順一覧][スレッド一覧]

ruby-changes:38710

From: ko1 <ko1@a...>
Date: Sat, 6 Jun 2015 16:01:39 +0900 (JST)
Subject: [ruby-changes:38710] ko1:r50791 (trunk): * class.c: ins_methods_push() needs rb_method_visibility_t type on

ko1	2015-06-06 16:01:21 +0900 (Sat, 06 Jun 2015)

  New Revision: 50791

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50791

  Log:
    * class.c: ins_methods_push() needs rb_method_visibility_t type on
      2nd arg.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50790)
+++ ChangeLog	(revision 50791)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun  6 15:59:38 2015  Koichi Sasada  <ko1@a...>
+
+	* class.c: ins_methods_push() needs rb_method_visibility_t type on
+	  2nd arg.
+
 Sat Jun  6 15:05:47 2015  Koichi Sasada  <ko1@a...>
 
 	* class.c (ins_methods_push): Change type and name of parameters
Index: class.c
===================================================================
--- class.c	(revision 50790)
+++ class.c	(revision 50791)
@@ -1091,19 +1091,19 @@ ins_methods_i(st_data_t name, st_data_t https://github.com/ruby/ruby/blob/trunk/class.c#L1091
 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 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]