diff options
author | 卜部昌平 <[email protected]> | 2019-08-26 15:20:15 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-27 15:52:26 +0900 |
commit | 703783324c16b8b2b50210d1a7d1119902abbb8b (patch) | |
tree | d594ba9029a1ddcee223fcb2f39be07ef20daca1 /thread_sync.c | |
parent | 5c7c2d9951f2512ca10ea38fecc48d8ac67502e6 (diff) |
rb_ensure now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit deletes ANYARGS from
rb_ensure, which also revealed many arity / type mismatches.
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 3 |
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; |