From 69683968a99a8281c28e46c1e6cb3736694a1ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 28 Aug 2019 16:18:58 +0900 Subject: fix arity of rb_mutex_synchronize_m This is just a trivial mistake introduced in 6c56dae4b23c5c50e351758538141ca26b9aba40. --- thread_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_sync.c') diff --git a/thread_sync.c b/thread_sync.c index f98a7655c0..afeaaa464e 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -521,7 +521,7 @@ rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg) * completes. See the example under +Mutex+. */ static VALUE -rb_mutex_synchronize_m(VALUE self, VALUE args) +rb_mutex_synchronize_m(VALUE self) { if (!rb_block_given_p()) { rb_raise(rb_eThreadError, "must be called with a block"); -- cgit v1.2.3