summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-08-27 23:41:51 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-27 23:41:52 +0900
commiteaff19de2b31dc2133ba477291498d66bf3448bd (patch)
tree79b159869e1bc6d0f574bd6deb73cc1c42f93be6 /spec
parentd8060782373c181bc689ce9bc73f6cb8b74de44d (diff)
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')
-rw-r--r--spec/ruby/optional/capi/ext/thread_spec.c2
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);
}