summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-13 12:53:49 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-20 11:46:54 +0900
commitc7e6dbd5ab488a42f2d1a8f3503480b92cd0aa88 (patch)
tree9f368cee7fbe3cbb3a1996c4d54d9d4ce22c3802
parent984e0233fe0c60fb5c6c5f937c214e30c1b7c6f0 (diff)
fix arity mismatch
This is a ruby method with arity zero. Which means, this function takes one argument (that is self).
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index f5efe40ab8..b84fd17c84 100644
--- a/thread.c
+++ b/thread.c
@@ -309,7 +309,7 @@ static int rb_thread_debug_enabled;
*/
static VALUE
-rb_thread_s_debug(void)
+rb_thread_s_debug(VALUE _)
{
return INT2NUM(rb_thread_debug_enabled);
}