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

ruby-changes:57305

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 27 Aug 2019 15:54:09 +0900 (JST)
Subject: [ruby-changes:57305] 卜部昌平: 0c8592b9af (master): fix function prototype mismatch of rb_block_call

https://git.ruby-lang.org/ruby.git/commit/?id=0c8592b9af

From 0c8592b9af304dfcac0d08ba96d5f22ad8312e1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 27 Aug 2019 14:11:02 +0900
Subject: fix function prototype mismatch of rb_block_call

Nobu missed it in f0e73fc9862c8d2c57a89349fb79012b826b8245.

diff --git a/vm_eval.c b/vm_eval.c
index a0f8e55..b449cd4 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1218,7 +1218,7 @@ iterate_method(VALUE obj) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1218
 
 VALUE
 rb_block_call(VALUE obj, ID mid, int argc, const VALUE * argv,
-	      VALUE (*bl_proc) (ANYARGS), VALUE data2)
+	      rb_block_call_func_t bl_proc, VALUE data2)
 {
     struct iter_method_arg arg;
 
@@ -1257,7 +1257,7 @@ iterate_check_method(VALUE obj) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1257
 
 VALUE
 rb_check_block_call(VALUE obj, ID mid, int argc, const VALUE *argv,
-		    VALUE (*bl_proc) (ANYARGS), VALUE data2)
+		    rb_block_call_func_t bl_proc, VALUE data2)
 {
     struct iter_method_arg arg;
 
-- 
cgit v0.10.2


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

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