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

ruby-changes:60128

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 20 Feb 2020 11:49:28 +0900 (JST)
Subject: [ruby-changes:60128] c7e6dbd5ab (master): fix arity mismatch

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

From c7e6dbd5ab488a42f2d1a8f3503480b92cd0aa88 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: Thu, 13 Feb 2020 12:53:49 +0900
Subject: fix arity mismatch

This is a ruby method with arity zero.  Which means, this function takes
one argument (that is self).

diff --git a/thread.c b/thread.c
index f5efe40..b84fd17 100644
--- a/thread.c
+++ b/thread.c
@@ -309,7 +309,7 @@ static int rb_thread_debug_enabled; https://github.com/ruby/ruby/blob/trunk/thread.c#L309
  */
 
 static VALUE
-rb_thread_s_debug(void)
+rb_thread_s_debug(VALUE _)
 {
     return INT2NUM(rb_thread_debug_enabled);
 }
-- 
cgit v0.10.2


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

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