From eaff19de2b31dc2133ba477291498d66bf3448bd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 27 Aug 2019 23:41:51 +0900 Subject: Fix rb_thread_create argument type in response to the declaration change in e3fc30564e9466d6926f9d25a090dcf787bd5c33. Fixing the AppVeyor mswin CI failure: https://ci.appveyor.com/project/ruby/ruby/builds/26980881/job/2j6h1qwjnbc8cpop ref: https://github.com/ruby/ruby/pull/2404 --- spec/ruby/optional/capi/ext/thread_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c index b10d557dd5..2f5678cfca 100644 --- a/spec/ruby/optional/capi/ext/thread_spec.c +++ b/spec/ruby/optional/capi/ext/thread_spec.c @@ -125,7 +125,7 @@ static VALUE thread_spec_rb_thread_create(VALUE self, VALUE proc, VALUE arg) { rb_ary_push(args, proc); rb_ary_push(args, arg); - return rb_thread_create(thread_spec_call_proc, (void*)args); + return rb_thread_create((VALUE (*)(void *))thread_spec_call_proc, (void*)args); } -- cgit v1.2.3