diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-27 23:41:51 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-27 23:41:52 +0900 |
commit | eaff19de2b31dc2133ba477291498d66bf3448bd (patch) | |
tree | 79b159869e1bc6d0f574bd6deb73cc1c42f93be6 /spec/ruby/optional/capi/ext | |
parent | d8060782373c181bc689ce9bc73f6cb8b74de44d (diff) | |
download | ruby-eaff19de2b31dc2133ba477291498d66bf3448bd.tar.gz |
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
Diffstat (limited to 'spec/ruby/optional/capi/ext')
-rw-r--r-- | spec/ruby/optional/capi/ext/thread_spec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |