ruby-changes:57331
From: Takashi <ko1@a...>
Date: Tue, 27 Aug 2019 23:43:16 +0900 (JST)
Subject: [ruby-changes:57331] Takashi Kokubun: eaff19de2b (master): Fix rb_thread_create argument type
https://git.ruby-lang.org/ruby.git/commit/?id=eaff19de2b From eaff19de2b31dc2133ba477291498d66bf3448bd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> 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 diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c index b10d557..2f5678c 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) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/thread_spec.c#L125 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/