summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index c2612c1415..f98a7655c0 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -1363,8 +1363,9 @@ do_sleep(VALUE args)
}
static VALUE
-delete_from_waitq(struct sync_waiter *w)
+delete_from_waitq(VALUE v)
{
+ struct sync_waiter *w = (void *)v;
list_del(&w->node);
return Qnil;